generated from pulumi/pulumi-tf-provider-boilerplate
/
ldapSetting.go
410 lines (364 loc) · 24.8 KB
/
ldapSetting.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
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package artifactory
import (
"context"
"reflect"
"github.com/pkg/errors"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// ## # Artifactory LDAP Setting Resource
//
// This resource can be used to manage Artifactory's LDAP settings for user authentication.
//
// When specified LDAP setting is active, Artifactory first attempts to authenticate the user against the LDAP server. If LDAP authentication fails, it then tries to authenticate via its internal database.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
// "github.com/pulumi/pulumi-artifactory/sdk/v2/go/artifactory"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// _, err := artifactory.NewLdapSetting(ctx, "ldapName", &artifactory.LdapSettingArgs{
// AllowUserToAccessProfile: pulumi.Bool(false),
// AutoCreateUser: pulumi.Bool(true),
// EmailAttribute: pulumi.String("mail"),
// Enabled: pulumi.Bool(true),
// Key: pulumi.String("ldap_name"),
// LdapPoisoningProtection: pulumi.Bool(true),
// LdapUrl: pulumi.String("ldap://ldap_server_url"),
// ManagerDn: pulumi.String("mgr_dn"),
// ManagerPassword: pulumi.String("mgr_passwd_random"),
// PagingSupportEnabled: pulumi.Bool(false),
// SearchBase: pulumi.String("ou=users"),
// SearchFilter: pulumi.String("(uid={0})"),
// SearchSubTree: pulumi.Bool(true),
// UserDnPattern: pulumi.String("uid={0},ou=People"),
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
// ```
// Note: `Key` argument has to match to the resource name.\
// Reference Link: [JFrog LDAP](https://www.jfrog.com/confluence/display/JFROG/LDAP)
//
// ## Import
//
// LDAP setting can be imported using the key, e.g.
//
// ```sh
// $ pulumi import artifactory:index/ldapSetting:LdapSetting ldap_name ldap_name
// ```
type LdapSetting struct {
pulumi.CustomResourceState
// When set, users created after logging in using LDAP will be able to access their profile page. Default value is `false`.
AllowUserToAccessProfile pulumi.BoolPtrOutput `pulumi:"allowUserToAccessProfile"`
// When set, the system will automatically create new users for those who have logged in using LDAP, and assign them to the default groups. Default value is `true`.
AutoCreateUser pulumi.BoolPtrOutput `pulumi:"autoCreateUser"`
// An attribute that can be used to map a user's email address to a user created automatically in Artifactory. Default value is `mail`.
// - Note: If blank/empty string input was set for email_attribute, Default value "mail" takes effect. This is to match with Artifactory behavior.
EmailAttribute pulumi.StringPtrOutput `pulumi:"emailAttribute"`
// When set, these settings are enabled. Default value is `true`.
Enabled pulumi.BoolPtrOutput `pulumi:"enabled"`
// The unique ID of the LDAP setting.
Key pulumi.StringOutput `pulumi:"key"`
// Protects against LDAP poisoning by filtering out users exposed to vulnerabilities. Default value is `true`.
LdapPoisoningProtection pulumi.BoolPtrOutput `pulumi:"ldapPoisoningProtection"`
// Location of the LDAP server in the following format: ldap://myserver:myport/dc=sampledomain,dc=com. The URL should include the base DN used to search for and/or authenticate users.
LdapUrl pulumi.StringOutput `pulumi:"ldapUrl"`
// The full DN of a user with permissions that allow querying the LDAP server. When working with LDAP Groups, the user should have permissions for any extra group attributes such as memberOf.
ManagerDn pulumi.StringPtrOutput `pulumi:"managerDn"`
// The password of the user binding to the LDAP server when using "search" authentication.
ManagerPassword pulumi.StringOutput `pulumi:"managerPassword"`
// When set, supports paging results for the LDAP server. This feature requires that the LDAP Server supports a PagedResultsControl configuration. Default value is `true`.
PagingSupportEnabled pulumi.BoolPtrOutput `pulumi:"pagingSupportEnabled"`
// The Context name in which to search relative to the base DN in the LDAP URL. Multiple search bases may be specified separated by a pipe ( | ).
SearchBase pulumi.StringPtrOutput `pulumi:"searchBase"`
// A filter expression used to search for the user DN that is used in LDAP authentication. This is an LDAP search filter (as defined in 'RFC 2254') with optional arguments. In this case, the username is the only argument, denoted by '{0}'. Possible examples are: uid={0}) - this would search for a username match on the uid attribute. Authentication using LDAP is performed from the DN found if successful. Default value is blank/empty.
// - Note: LDAP settings should provide a userDnPattern or a searchFilter (or both)
SearchFilter pulumi.StringPtrOutput `pulumi:"searchFilter"`
// When set, enables deep search through the sub-tree of the LDAP URL + Search Base. Default value is `true`.
SearchSubTree pulumi.BoolPtrOutput `pulumi:"searchSubTree"`
// A DN pattern used to log users directly in to the LDAP database. This pattern is used to create a DN string for "direct" user authentication, and is relative to the base DN in the LDAP URL. The pattern argument {0} is replaced with the username at runtime. This only works if anonymous binding is allowed and a direct user DN can be used (which is not the default case for Active Directory). For example: uid={0},ou=People. Default value is blank/empty.
// - Note: LDAP settings should provide a userDnPattern or a searchFilter (or both).
UserDnPattern pulumi.StringPtrOutput `pulumi:"userDnPattern"`
}
// NewLdapSetting registers a new resource with the given unique name, arguments, and options.
func NewLdapSetting(ctx *pulumi.Context,
name string, args *LdapSettingArgs, opts ...pulumi.ResourceOption) (*LdapSetting, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.Key == nil {
return nil, errors.New("invalid value for required argument 'Key'")
}
if args.LdapUrl == nil {
return nil, errors.New("invalid value for required argument 'LdapUrl'")
}
var resource LdapSetting
err := ctx.RegisterResource("artifactory:index/ldapSetting:LdapSetting", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetLdapSetting gets an existing LdapSetting resource's state with the given name, ID, and optional
// state properties that are used to uniquely qualify the lookup (nil if not required).
func GetLdapSetting(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *LdapSettingState, opts ...pulumi.ResourceOption) (*LdapSetting, error) {
var resource LdapSetting
err := ctx.ReadResource("artifactory:index/ldapSetting:LdapSetting", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering LdapSetting resources.
type ldapSettingState struct {
// When set, users created after logging in using LDAP will be able to access their profile page. Default value is `false`.
AllowUserToAccessProfile *bool `pulumi:"allowUserToAccessProfile"`
// When set, the system will automatically create new users for those who have logged in using LDAP, and assign them to the default groups. Default value is `true`.
AutoCreateUser *bool `pulumi:"autoCreateUser"`
// An attribute that can be used to map a user's email address to a user created automatically in Artifactory. Default value is `mail`.
// - Note: If blank/empty string input was set for email_attribute, Default value "mail" takes effect. This is to match with Artifactory behavior.
EmailAttribute *string `pulumi:"emailAttribute"`
// When set, these settings are enabled. Default value is `true`.
Enabled *bool `pulumi:"enabled"`
// The unique ID of the LDAP setting.
Key *string `pulumi:"key"`
// Protects against LDAP poisoning by filtering out users exposed to vulnerabilities. Default value is `true`.
LdapPoisoningProtection *bool `pulumi:"ldapPoisoningProtection"`
// Location of the LDAP server in the following format: ldap://myserver:myport/dc=sampledomain,dc=com. The URL should include the base DN used to search for and/or authenticate users.
LdapUrl *string `pulumi:"ldapUrl"`
// The full DN of a user with permissions that allow querying the LDAP server. When working with LDAP Groups, the user should have permissions for any extra group attributes such as memberOf.
ManagerDn *string `pulumi:"managerDn"`
// The password of the user binding to the LDAP server when using "search" authentication.
ManagerPassword *string `pulumi:"managerPassword"`
// When set, supports paging results for the LDAP server. This feature requires that the LDAP Server supports a PagedResultsControl configuration. Default value is `true`.
PagingSupportEnabled *bool `pulumi:"pagingSupportEnabled"`
// The Context name in which to search relative to the base DN in the LDAP URL. Multiple search bases may be specified separated by a pipe ( | ).
SearchBase *string `pulumi:"searchBase"`
// A filter expression used to search for the user DN that is used in LDAP authentication. This is an LDAP search filter (as defined in 'RFC 2254') with optional arguments. In this case, the username is the only argument, denoted by '{0}'. Possible examples are: uid={0}) - this would search for a username match on the uid attribute. Authentication using LDAP is performed from the DN found if successful. Default value is blank/empty.
// - Note: LDAP settings should provide a userDnPattern or a searchFilter (or both)
SearchFilter *string `pulumi:"searchFilter"`
// When set, enables deep search through the sub-tree of the LDAP URL + Search Base. Default value is `true`.
SearchSubTree *bool `pulumi:"searchSubTree"`
// A DN pattern used to log users directly in to the LDAP database. This pattern is used to create a DN string for "direct" user authentication, and is relative to the base DN in the LDAP URL. The pattern argument {0} is replaced with the username at runtime. This only works if anonymous binding is allowed and a direct user DN can be used (which is not the default case for Active Directory). For example: uid={0},ou=People. Default value is blank/empty.
// - Note: LDAP settings should provide a userDnPattern or a searchFilter (or both).
UserDnPattern *string `pulumi:"userDnPattern"`
}
type LdapSettingState struct {
// When set, users created after logging in using LDAP will be able to access their profile page. Default value is `false`.
AllowUserToAccessProfile pulumi.BoolPtrInput
// When set, the system will automatically create new users for those who have logged in using LDAP, and assign them to the default groups. Default value is `true`.
AutoCreateUser pulumi.BoolPtrInput
// An attribute that can be used to map a user's email address to a user created automatically in Artifactory. Default value is `mail`.
// - Note: If blank/empty string input was set for email_attribute, Default value "mail" takes effect. This is to match with Artifactory behavior.
EmailAttribute pulumi.StringPtrInput
// When set, these settings are enabled. Default value is `true`.
Enabled pulumi.BoolPtrInput
// The unique ID of the LDAP setting.
Key pulumi.StringPtrInput
// Protects against LDAP poisoning by filtering out users exposed to vulnerabilities. Default value is `true`.
LdapPoisoningProtection pulumi.BoolPtrInput
// Location of the LDAP server in the following format: ldap://myserver:myport/dc=sampledomain,dc=com. The URL should include the base DN used to search for and/or authenticate users.
LdapUrl pulumi.StringPtrInput
// The full DN of a user with permissions that allow querying the LDAP server. When working with LDAP Groups, the user should have permissions for any extra group attributes such as memberOf.
ManagerDn pulumi.StringPtrInput
// The password of the user binding to the LDAP server when using "search" authentication.
ManagerPassword pulumi.StringPtrInput
// When set, supports paging results for the LDAP server. This feature requires that the LDAP Server supports a PagedResultsControl configuration. Default value is `true`.
PagingSupportEnabled pulumi.BoolPtrInput
// The Context name in which to search relative to the base DN in the LDAP URL. Multiple search bases may be specified separated by a pipe ( | ).
SearchBase pulumi.StringPtrInput
// A filter expression used to search for the user DN that is used in LDAP authentication. This is an LDAP search filter (as defined in 'RFC 2254') with optional arguments. In this case, the username is the only argument, denoted by '{0}'. Possible examples are: uid={0}) - this would search for a username match on the uid attribute. Authentication using LDAP is performed from the DN found if successful. Default value is blank/empty.
// - Note: LDAP settings should provide a userDnPattern or a searchFilter (or both)
SearchFilter pulumi.StringPtrInput
// When set, enables deep search through the sub-tree of the LDAP URL + Search Base. Default value is `true`.
SearchSubTree pulumi.BoolPtrInput
// A DN pattern used to log users directly in to the LDAP database. This pattern is used to create a DN string for "direct" user authentication, and is relative to the base DN in the LDAP URL. The pattern argument {0} is replaced with the username at runtime. This only works if anonymous binding is allowed and a direct user DN can be used (which is not the default case for Active Directory). For example: uid={0},ou=People. Default value is blank/empty.
// - Note: LDAP settings should provide a userDnPattern or a searchFilter (or both).
UserDnPattern pulumi.StringPtrInput
}
func (LdapSettingState) ElementType() reflect.Type {
return reflect.TypeOf((*ldapSettingState)(nil)).Elem()
}
type ldapSettingArgs struct {
// When set, users created after logging in using LDAP will be able to access their profile page. Default value is `false`.
AllowUserToAccessProfile *bool `pulumi:"allowUserToAccessProfile"`
// When set, the system will automatically create new users for those who have logged in using LDAP, and assign them to the default groups. Default value is `true`.
AutoCreateUser *bool `pulumi:"autoCreateUser"`
// An attribute that can be used to map a user's email address to a user created automatically in Artifactory. Default value is `mail`.
// - Note: If blank/empty string input was set for email_attribute, Default value "mail" takes effect. This is to match with Artifactory behavior.
EmailAttribute *string `pulumi:"emailAttribute"`
// When set, these settings are enabled. Default value is `true`.
Enabled *bool `pulumi:"enabled"`
// The unique ID of the LDAP setting.
Key string `pulumi:"key"`
// Protects against LDAP poisoning by filtering out users exposed to vulnerabilities. Default value is `true`.
LdapPoisoningProtection *bool `pulumi:"ldapPoisoningProtection"`
// Location of the LDAP server in the following format: ldap://myserver:myport/dc=sampledomain,dc=com. The URL should include the base DN used to search for and/or authenticate users.
LdapUrl string `pulumi:"ldapUrl"`
// The full DN of a user with permissions that allow querying the LDAP server. When working with LDAP Groups, the user should have permissions for any extra group attributes such as memberOf.
ManagerDn *string `pulumi:"managerDn"`
// The password of the user binding to the LDAP server when using "search" authentication.
ManagerPassword *string `pulumi:"managerPassword"`
// When set, supports paging results for the LDAP server. This feature requires that the LDAP Server supports a PagedResultsControl configuration. Default value is `true`.
PagingSupportEnabled *bool `pulumi:"pagingSupportEnabled"`
// The Context name in which to search relative to the base DN in the LDAP URL. Multiple search bases may be specified separated by a pipe ( | ).
SearchBase *string `pulumi:"searchBase"`
// A filter expression used to search for the user DN that is used in LDAP authentication. This is an LDAP search filter (as defined in 'RFC 2254') with optional arguments. In this case, the username is the only argument, denoted by '{0}'. Possible examples are: uid={0}) - this would search for a username match on the uid attribute. Authentication using LDAP is performed from the DN found if successful. Default value is blank/empty.
// - Note: LDAP settings should provide a userDnPattern or a searchFilter (or both)
SearchFilter *string `pulumi:"searchFilter"`
// When set, enables deep search through the sub-tree of the LDAP URL + Search Base. Default value is `true`.
SearchSubTree *bool `pulumi:"searchSubTree"`
// A DN pattern used to log users directly in to the LDAP database. This pattern is used to create a DN string for "direct" user authentication, and is relative to the base DN in the LDAP URL. The pattern argument {0} is replaced with the username at runtime. This only works if anonymous binding is allowed and a direct user DN can be used (which is not the default case for Active Directory). For example: uid={0},ou=People. Default value is blank/empty.
// - Note: LDAP settings should provide a userDnPattern or a searchFilter (or both).
UserDnPattern *string `pulumi:"userDnPattern"`
}
// The set of arguments for constructing a LdapSetting resource.
type LdapSettingArgs struct {
// When set, users created after logging in using LDAP will be able to access their profile page. Default value is `false`.
AllowUserToAccessProfile pulumi.BoolPtrInput
// When set, the system will automatically create new users for those who have logged in using LDAP, and assign them to the default groups. Default value is `true`.
AutoCreateUser pulumi.BoolPtrInput
// An attribute that can be used to map a user's email address to a user created automatically in Artifactory. Default value is `mail`.
// - Note: If blank/empty string input was set for email_attribute, Default value "mail" takes effect. This is to match with Artifactory behavior.
EmailAttribute pulumi.StringPtrInput
// When set, these settings are enabled. Default value is `true`.
Enabled pulumi.BoolPtrInput
// The unique ID of the LDAP setting.
Key pulumi.StringInput
// Protects against LDAP poisoning by filtering out users exposed to vulnerabilities. Default value is `true`.
LdapPoisoningProtection pulumi.BoolPtrInput
// Location of the LDAP server in the following format: ldap://myserver:myport/dc=sampledomain,dc=com. The URL should include the base DN used to search for and/or authenticate users.
LdapUrl pulumi.StringInput
// The full DN of a user with permissions that allow querying the LDAP server. When working with LDAP Groups, the user should have permissions for any extra group attributes such as memberOf.
ManagerDn pulumi.StringPtrInput
// The password of the user binding to the LDAP server when using "search" authentication.
ManagerPassword pulumi.StringPtrInput
// When set, supports paging results for the LDAP server. This feature requires that the LDAP Server supports a PagedResultsControl configuration. Default value is `true`.
PagingSupportEnabled pulumi.BoolPtrInput
// The Context name in which to search relative to the base DN in the LDAP URL. Multiple search bases may be specified separated by a pipe ( | ).
SearchBase pulumi.StringPtrInput
// A filter expression used to search for the user DN that is used in LDAP authentication. This is an LDAP search filter (as defined in 'RFC 2254') with optional arguments. In this case, the username is the only argument, denoted by '{0}'. Possible examples are: uid={0}) - this would search for a username match on the uid attribute. Authentication using LDAP is performed from the DN found if successful. Default value is blank/empty.
// - Note: LDAP settings should provide a userDnPattern or a searchFilter (or both)
SearchFilter pulumi.StringPtrInput
// When set, enables deep search through the sub-tree of the LDAP URL + Search Base. Default value is `true`.
SearchSubTree pulumi.BoolPtrInput
// A DN pattern used to log users directly in to the LDAP database. This pattern is used to create a DN string for "direct" user authentication, and is relative to the base DN in the LDAP URL. The pattern argument {0} is replaced with the username at runtime. This only works if anonymous binding is allowed and a direct user DN can be used (which is not the default case for Active Directory). For example: uid={0},ou=People. Default value is blank/empty.
// - Note: LDAP settings should provide a userDnPattern or a searchFilter (or both).
UserDnPattern pulumi.StringPtrInput
}
func (LdapSettingArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ldapSettingArgs)(nil)).Elem()
}
type LdapSettingInput interface {
pulumi.Input
ToLdapSettingOutput() LdapSettingOutput
ToLdapSettingOutputWithContext(ctx context.Context) LdapSettingOutput
}
func (*LdapSetting) ElementType() reflect.Type {
return reflect.TypeOf((**LdapSetting)(nil)).Elem()
}
func (i *LdapSetting) ToLdapSettingOutput() LdapSettingOutput {
return i.ToLdapSettingOutputWithContext(context.Background())
}
func (i *LdapSetting) ToLdapSettingOutputWithContext(ctx context.Context) LdapSettingOutput {
return pulumi.ToOutputWithContext(ctx, i).(LdapSettingOutput)
}
// LdapSettingArrayInput is an input type that accepts LdapSettingArray and LdapSettingArrayOutput values.
// You can construct a concrete instance of `LdapSettingArrayInput` via:
//
// LdapSettingArray{ LdapSettingArgs{...} }
type LdapSettingArrayInput interface {
pulumi.Input
ToLdapSettingArrayOutput() LdapSettingArrayOutput
ToLdapSettingArrayOutputWithContext(context.Context) LdapSettingArrayOutput
}
type LdapSettingArray []LdapSettingInput
func (LdapSettingArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*LdapSetting)(nil)).Elem()
}
func (i LdapSettingArray) ToLdapSettingArrayOutput() LdapSettingArrayOutput {
return i.ToLdapSettingArrayOutputWithContext(context.Background())
}
func (i LdapSettingArray) ToLdapSettingArrayOutputWithContext(ctx context.Context) LdapSettingArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(LdapSettingArrayOutput)
}
// LdapSettingMapInput is an input type that accepts LdapSettingMap and LdapSettingMapOutput values.
// You can construct a concrete instance of `LdapSettingMapInput` via:
//
// LdapSettingMap{ "key": LdapSettingArgs{...} }
type LdapSettingMapInput interface {
pulumi.Input
ToLdapSettingMapOutput() LdapSettingMapOutput
ToLdapSettingMapOutputWithContext(context.Context) LdapSettingMapOutput
}
type LdapSettingMap map[string]LdapSettingInput
func (LdapSettingMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*LdapSetting)(nil)).Elem()
}
func (i LdapSettingMap) ToLdapSettingMapOutput() LdapSettingMapOutput {
return i.ToLdapSettingMapOutputWithContext(context.Background())
}
func (i LdapSettingMap) ToLdapSettingMapOutputWithContext(ctx context.Context) LdapSettingMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(LdapSettingMapOutput)
}
type LdapSettingOutput struct{ *pulumi.OutputState }
func (LdapSettingOutput) ElementType() reflect.Type {
return reflect.TypeOf((**LdapSetting)(nil)).Elem()
}
func (o LdapSettingOutput) ToLdapSettingOutput() LdapSettingOutput {
return o
}
func (o LdapSettingOutput) ToLdapSettingOutputWithContext(ctx context.Context) LdapSettingOutput {
return o
}
type LdapSettingArrayOutput struct{ *pulumi.OutputState }
func (LdapSettingArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*LdapSetting)(nil)).Elem()
}
func (o LdapSettingArrayOutput) ToLdapSettingArrayOutput() LdapSettingArrayOutput {
return o
}
func (o LdapSettingArrayOutput) ToLdapSettingArrayOutputWithContext(ctx context.Context) LdapSettingArrayOutput {
return o
}
func (o LdapSettingArrayOutput) Index(i pulumi.IntInput) LdapSettingOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *LdapSetting {
return vs[0].([]*LdapSetting)[vs[1].(int)]
}).(LdapSettingOutput)
}
type LdapSettingMapOutput struct{ *pulumi.OutputState }
func (LdapSettingMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*LdapSetting)(nil)).Elem()
}
func (o LdapSettingMapOutput) ToLdapSettingMapOutput() LdapSettingMapOutput {
return o
}
func (o LdapSettingMapOutput) ToLdapSettingMapOutputWithContext(ctx context.Context) LdapSettingMapOutput {
return o
}
func (o LdapSettingMapOutput) MapIndex(k pulumi.StringInput) LdapSettingOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *LdapSetting {
return vs[0].(map[string]*LdapSetting)[vs[1].(string)]
}).(LdapSettingOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*LdapSettingInput)(nil)).Elem(), &LdapSetting{})
pulumi.RegisterInputType(reflect.TypeOf((*LdapSettingArrayInput)(nil)).Elem(), LdapSettingArray{})
pulumi.RegisterInputType(reflect.TypeOf((*LdapSettingMapInput)(nil)).Elem(), LdapSettingMap{})
pulumi.RegisterOutputType(LdapSettingOutput{})
pulumi.RegisterOutputType(LdapSettingArrayOutput{})
pulumi.RegisterOutputType(LdapSettingMapOutput{})
}