/
swa.go
739 lines (662 loc) · 30.5 KB
/
swa.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
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
// 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 app
import (
"context"
"reflect"
"errors"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// This resource allows you to create and configure a SWA Application.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi-okta/sdk/v3/go/okta/app"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// _, err := app.NewSwa(ctx, "example", &app.SwaArgs{
// ButtonField: pulumi.String("btn-login"),
// Label: pulumi.String("example"),
// PasswordField: pulumi.String("txtbox-password"),
// Url: pulumi.String("https://example.com/login.html"),
// UsernameField: pulumi.String("txtbox-username"),
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
//
// ## Import
//
// Okta SWA App can be imported via the Okta ID.
//
// ```sh
//
// $ pulumi import okta:app/swa:Swa example <app id>
//
// ```
//
// It's also possible to import app without groups or/and users. In this case ID may look like this
//
// ```sh
//
// $ pulumi import okta:app/swa:Swa example <app id>/skip_users
//
// ```
//
// ```sh
//
// $ pulumi import okta:app/swa:Swa example <app id>/skip_users/skip_groups
//
// ```
//
// ```sh
//
// $ pulumi import okta:app/swa:Swa example <app id>/skip_groups
//
// ```
type Swa struct {
pulumi.CustomResourceState
// Custom error page URL.
AccessibilityErrorRedirectUrl pulumi.StringPtrOutput `pulumi:"accessibilityErrorRedirectUrl"`
// Custom login page for this application.
AccessibilityLoginRedirectUrl pulumi.StringPtrOutput `pulumi:"accessibilityLoginRedirectUrl"`
// Enable self-service. By default, it is `false`.
AccessibilitySelfService pulumi.BoolPtrOutput `pulumi:"accessibilitySelfService"`
// Application notes for admins.
AdminNote pulumi.StringPtrOutput `pulumi:"adminNote"`
// Displays specific appLinks for the app. The value for each application link should be boolean.
AppLinksJson pulumi.StringPtrOutput `pulumi:"appLinksJson"`
// Display auto submit toolbar.
AutoSubmitToolbar pulumi.BoolPtrOutput `pulumi:"autoSubmitToolbar"`
// Login button field.
ButtonField pulumi.StringPtrOutput `pulumi:"buttonField"`
// CSS selector for the checkbox.
Checkbox pulumi.StringPtrOutput `pulumi:"checkbox"`
// Application notes for end users.
EnduserNote pulumi.StringPtrOutput `pulumi:"enduserNote"`
// Groups associated with the application. See `app.GroupAssignment` for a more flexible approach.
//
// Deprecated: The direct configuration of groups in this app resource is deprecated, please ensure you use the resource `okta_app_group_assignments` for this functionality.
Groups pulumi.StringArrayOutput `pulumi:"groups"`
// Do not display application icon on mobile app.
HideIos pulumi.BoolPtrOutput `pulumi:"hideIos"`
// Do not display application icon to users.
HideWeb pulumi.BoolPtrOutput `pulumi:"hideWeb"`
// The display name of the Application.
Label pulumi.StringOutput `pulumi:"label"`
// Local file path to the logo. The file must be in PNG, JPG, or GIF format, and less than 1 MB in size.
Logo pulumi.StringPtrOutput `pulumi:"logo"`
// Direct link of application logo.
LogoUrl pulumi.StringOutput `pulumi:"logoUrl"`
// Name assigned to the application by Okta.
Name pulumi.StringOutput `pulumi:"name"`
// Login password field.
PasswordField pulumi.StringPtrOutput `pulumi:"passwordField"`
// name of application from the Okta Integration Network, if not included a custom app will be created.
PreconfiguredApp pulumi.StringPtrOutput `pulumi:"preconfiguredApp"`
// Redirect URL. If going to the login page URL redirects to another page, then enter that URL here.
RedirectUrl pulumi.StringPtrOutput `pulumi:"redirectUrl"`
// Sign-on mode of application.
SignOnMode pulumi.StringOutput `pulumi:"signOnMode"`
// Indicator that allows the app to skip `groups` sync (it's also can be provided during import). Default is `false`.
SkipGroups pulumi.BoolPtrOutput `pulumi:"skipGroups"`
// Indicator that allows the app to skip `users` sync (it's also can be provided during import). Default is `false`.
SkipUsers pulumi.BoolPtrOutput `pulumi:"skipUsers"`
// Status of application. By default, it is `"ACTIVE"`.
Status pulumi.StringPtrOutput `pulumi:"status"`
// The URL of the sign-in page for this app.
Url pulumi.StringPtrOutput `pulumi:"url"`
// A regular expression that further restricts url to the specified regular expression.
UrlRegex pulumi.StringPtrOutput `pulumi:"urlRegex"`
// Username template. Default: `"${source.login}"`
UserNameTemplate pulumi.StringPtrOutput `pulumi:"userNameTemplate"`
// Push username on update. Valid values: `"PUSH"` and `"DONT_PUSH"`.
UserNameTemplatePushStatus pulumi.StringPtrOutput `pulumi:"userNameTemplatePushStatus"`
// Username template suffix.
UserNameTemplateSuffix pulumi.StringPtrOutput `pulumi:"userNameTemplateSuffix"`
// Username template type. Default: `"BUILT_IN"`.
UserNameTemplateType pulumi.StringPtrOutput `pulumi:"userNameTemplateType"`
// Login username field.
UsernameField pulumi.StringPtrOutput `pulumi:"usernameField"`
// The users assigned to the application. See `app.User` for a more flexible approach.
//
// Deprecated: The direct configuration of users in this app resource is deprecated, please ensure you use the resource `okta_app_user` for this functionality.
Users SwaUserArrayOutput `pulumi:"users"`
}
// NewSwa registers a new resource with the given unique name, arguments, and options.
func NewSwa(ctx *pulumi.Context,
name string, args *SwaArgs, opts ...pulumi.ResourceOption) (*Swa, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.Label == nil {
return nil, errors.New("invalid value for required argument 'Label'")
}
var resource Swa
err := ctx.RegisterResource("okta:app/swa:Swa", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetSwa gets an existing Swa 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 GetSwa(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *SwaState, opts ...pulumi.ResourceOption) (*Swa, error) {
var resource Swa
err := ctx.ReadResource("okta:app/swa:Swa", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering Swa resources.
type swaState struct {
// Custom error page URL.
AccessibilityErrorRedirectUrl *string `pulumi:"accessibilityErrorRedirectUrl"`
// Custom login page for this application.
AccessibilityLoginRedirectUrl *string `pulumi:"accessibilityLoginRedirectUrl"`
// Enable self-service. By default, it is `false`.
AccessibilitySelfService *bool `pulumi:"accessibilitySelfService"`
// Application notes for admins.
AdminNote *string `pulumi:"adminNote"`
// Displays specific appLinks for the app. The value for each application link should be boolean.
AppLinksJson *string `pulumi:"appLinksJson"`
// Display auto submit toolbar.
AutoSubmitToolbar *bool `pulumi:"autoSubmitToolbar"`
// Login button field.
ButtonField *string `pulumi:"buttonField"`
// CSS selector for the checkbox.
Checkbox *string `pulumi:"checkbox"`
// Application notes for end users.
EnduserNote *string `pulumi:"enduserNote"`
// Groups associated with the application. See `app.GroupAssignment` for a more flexible approach.
//
// Deprecated: The direct configuration of groups in this app resource is deprecated, please ensure you use the resource `okta_app_group_assignments` for this functionality.
Groups []string `pulumi:"groups"`
// Do not display application icon on mobile app.
HideIos *bool `pulumi:"hideIos"`
// Do not display application icon to users.
HideWeb *bool `pulumi:"hideWeb"`
// The display name of the Application.
Label *string `pulumi:"label"`
// Local file path to the logo. The file must be in PNG, JPG, or GIF format, and less than 1 MB in size.
Logo *string `pulumi:"logo"`
// Direct link of application logo.
LogoUrl *string `pulumi:"logoUrl"`
// Name assigned to the application by Okta.
Name *string `pulumi:"name"`
// Login password field.
PasswordField *string `pulumi:"passwordField"`
// name of application from the Okta Integration Network, if not included a custom app will be created.
PreconfiguredApp *string `pulumi:"preconfiguredApp"`
// Redirect URL. If going to the login page URL redirects to another page, then enter that URL here.
RedirectUrl *string `pulumi:"redirectUrl"`
// Sign-on mode of application.
SignOnMode *string `pulumi:"signOnMode"`
// Indicator that allows the app to skip `groups` sync (it's also can be provided during import). Default is `false`.
SkipGroups *bool `pulumi:"skipGroups"`
// Indicator that allows the app to skip `users` sync (it's also can be provided during import). Default is `false`.
SkipUsers *bool `pulumi:"skipUsers"`
// Status of application. By default, it is `"ACTIVE"`.
Status *string `pulumi:"status"`
// The URL of the sign-in page for this app.
Url *string `pulumi:"url"`
// A regular expression that further restricts url to the specified regular expression.
UrlRegex *string `pulumi:"urlRegex"`
// Username template. Default: `"${source.login}"`
UserNameTemplate *string `pulumi:"userNameTemplate"`
// Push username on update. Valid values: `"PUSH"` and `"DONT_PUSH"`.
UserNameTemplatePushStatus *string `pulumi:"userNameTemplatePushStatus"`
// Username template suffix.
UserNameTemplateSuffix *string `pulumi:"userNameTemplateSuffix"`
// Username template type. Default: `"BUILT_IN"`.
UserNameTemplateType *string `pulumi:"userNameTemplateType"`
// Login username field.
UsernameField *string `pulumi:"usernameField"`
// The users assigned to the application. See `app.User` for a more flexible approach.
//
// Deprecated: The direct configuration of users in this app resource is deprecated, please ensure you use the resource `okta_app_user` for this functionality.
Users []SwaUser `pulumi:"users"`
}
type SwaState struct {
// Custom error page URL.
AccessibilityErrorRedirectUrl pulumi.StringPtrInput
// Custom login page for this application.
AccessibilityLoginRedirectUrl pulumi.StringPtrInput
// Enable self-service. By default, it is `false`.
AccessibilitySelfService pulumi.BoolPtrInput
// Application notes for admins.
AdminNote pulumi.StringPtrInput
// Displays specific appLinks for the app. The value for each application link should be boolean.
AppLinksJson pulumi.StringPtrInput
// Display auto submit toolbar.
AutoSubmitToolbar pulumi.BoolPtrInput
// Login button field.
ButtonField pulumi.StringPtrInput
// CSS selector for the checkbox.
Checkbox pulumi.StringPtrInput
// Application notes for end users.
EnduserNote pulumi.StringPtrInput
// Groups associated with the application. See `app.GroupAssignment` for a more flexible approach.
//
// Deprecated: The direct configuration of groups in this app resource is deprecated, please ensure you use the resource `okta_app_group_assignments` for this functionality.
Groups pulumi.StringArrayInput
// Do not display application icon on mobile app.
HideIos pulumi.BoolPtrInput
// Do not display application icon to users.
HideWeb pulumi.BoolPtrInput
// The display name of the Application.
Label pulumi.StringPtrInput
// Local file path to the logo. The file must be in PNG, JPG, or GIF format, and less than 1 MB in size.
Logo pulumi.StringPtrInput
// Direct link of application logo.
LogoUrl pulumi.StringPtrInput
// Name assigned to the application by Okta.
Name pulumi.StringPtrInput
// Login password field.
PasswordField pulumi.StringPtrInput
// name of application from the Okta Integration Network, if not included a custom app will be created.
PreconfiguredApp pulumi.StringPtrInput
// Redirect URL. If going to the login page URL redirects to another page, then enter that URL here.
RedirectUrl pulumi.StringPtrInput
// Sign-on mode of application.
SignOnMode pulumi.StringPtrInput
// Indicator that allows the app to skip `groups` sync (it's also can be provided during import). Default is `false`.
SkipGroups pulumi.BoolPtrInput
// Indicator that allows the app to skip `users` sync (it's also can be provided during import). Default is `false`.
SkipUsers pulumi.BoolPtrInput
// Status of application. By default, it is `"ACTIVE"`.
Status pulumi.StringPtrInput
// The URL of the sign-in page for this app.
Url pulumi.StringPtrInput
// A regular expression that further restricts url to the specified regular expression.
UrlRegex pulumi.StringPtrInput
// Username template. Default: `"${source.login}"`
UserNameTemplate pulumi.StringPtrInput
// Push username on update. Valid values: `"PUSH"` and `"DONT_PUSH"`.
UserNameTemplatePushStatus pulumi.StringPtrInput
// Username template suffix.
UserNameTemplateSuffix pulumi.StringPtrInput
// Username template type. Default: `"BUILT_IN"`.
UserNameTemplateType pulumi.StringPtrInput
// Login username field.
UsernameField pulumi.StringPtrInput
// The users assigned to the application. See `app.User` for a more flexible approach.
//
// Deprecated: The direct configuration of users in this app resource is deprecated, please ensure you use the resource `okta_app_user` for this functionality.
Users SwaUserArrayInput
}
func (SwaState) ElementType() reflect.Type {
return reflect.TypeOf((*swaState)(nil)).Elem()
}
type swaArgs struct {
// Custom error page URL.
AccessibilityErrorRedirectUrl *string `pulumi:"accessibilityErrorRedirectUrl"`
// Custom login page for this application.
AccessibilityLoginRedirectUrl *string `pulumi:"accessibilityLoginRedirectUrl"`
// Enable self-service. By default, it is `false`.
AccessibilitySelfService *bool `pulumi:"accessibilitySelfService"`
// Application notes for admins.
AdminNote *string `pulumi:"adminNote"`
// Displays specific appLinks for the app. The value for each application link should be boolean.
AppLinksJson *string `pulumi:"appLinksJson"`
// Display auto submit toolbar.
AutoSubmitToolbar *bool `pulumi:"autoSubmitToolbar"`
// Login button field.
ButtonField *string `pulumi:"buttonField"`
// CSS selector for the checkbox.
Checkbox *string `pulumi:"checkbox"`
// Application notes for end users.
EnduserNote *string `pulumi:"enduserNote"`
// Groups associated with the application. See `app.GroupAssignment` for a more flexible approach.
//
// Deprecated: The direct configuration of groups in this app resource is deprecated, please ensure you use the resource `okta_app_group_assignments` for this functionality.
Groups []string `pulumi:"groups"`
// Do not display application icon on mobile app.
HideIos *bool `pulumi:"hideIos"`
// Do not display application icon to users.
HideWeb *bool `pulumi:"hideWeb"`
// The display name of the Application.
Label string `pulumi:"label"`
// Local file path to the logo. The file must be in PNG, JPG, or GIF format, and less than 1 MB in size.
Logo *string `pulumi:"logo"`
// Login password field.
PasswordField *string `pulumi:"passwordField"`
// name of application from the Okta Integration Network, if not included a custom app will be created.
PreconfiguredApp *string `pulumi:"preconfiguredApp"`
// Redirect URL. If going to the login page URL redirects to another page, then enter that URL here.
RedirectUrl *string `pulumi:"redirectUrl"`
// Indicator that allows the app to skip `groups` sync (it's also can be provided during import). Default is `false`.
SkipGroups *bool `pulumi:"skipGroups"`
// Indicator that allows the app to skip `users` sync (it's also can be provided during import). Default is `false`.
SkipUsers *bool `pulumi:"skipUsers"`
// Status of application. By default, it is `"ACTIVE"`.
Status *string `pulumi:"status"`
// The URL of the sign-in page for this app.
Url *string `pulumi:"url"`
// A regular expression that further restricts url to the specified regular expression.
UrlRegex *string `pulumi:"urlRegex"`
// Username template. Default: `"${source.login}"`
UserNameTemplate *string `pulumi:"userNameTemplate"`
// Push username on update. Valid values: `"PUSH"` and `"DONT_PUSH"`.
UserNameTemplatePushStatus *string `pulumi:"userNameTemplatePushStatus"`
// Username template suffix.
UserNameTemplateSuffix *string `pulumi:"userNameTemplateSuffix"`
// Username template type. Default: `"BUILT_IN"`.
UserNameTemplateType *string `pulumi:"userNameTemplateType"`
// Login username field.
UsernameField *string `pulumi:"usernameField"`
// The users assigned to the application. See `app.User` for a more flexible approach.
//
// Deprecated: The direct configuration of users in this app resource is deprecated, please ensure you use the resource `okta_app_user` for this functionality.
Users []SwaUser `pulumi:"users"`
}
// The set of arguments for constructing a Swa resource.
type SwaArgs struct {
// Custom error page URL.
AccessibilityErrorRedirectUrl pulumi.StringPtrInput
// Custom login page for this application.
AccessibilityLoginRedirectUrl pulumi.StringPtrInput
// Enable self-service. By default, it is `false`.
AccessibilitySelfService pulumi.BoolPtrInput
// Application notes for admins.
AdminNote pulumi.StringPtrInput
// Displays specific appLinks for the app. The value for each application link should be boolean.
AppLinksJson pulumi.StringPtrInput
// Display auto submit toolbar.
AutoSubmitToolbar pulumi.BoolPtrInput
// Login button field.
ButtonField pulumi.StringPtrInput
// CSS selector for the checkbox.
Checkbox pulumi.StringPtrInput
// Application notes for end users.
EnduserNote pulumi.StringPtrInput
// Groups associated with the application. See `app.GroupAssignment` for a more flexible approach.
//
// Deprecated: The direct configuration of groups in this app resource is deprecated, please ensure you use the resource `okta_app_group_assignments` for this functionality.
Groups pulumi.StringArrayInput
// Do not display application icon on mobile app.
HideIos pulumi.BoolPtrInput
// Do not display application icon to users.
HideWeb pulumi.BoolPtrInput
// The display name of the Application.
Label pulumi.StringInput
// Local file path to the logo. The file must be in PNG, JPG, or GIF format, and less than 1 MB in size.
Logo pulumi.StringPtrInput
// Login password field.
PasswordField pulumi.StringPtrInput
// name of application from the Okta Integration Network, if not included a custom app will be created.
PreconfiguredApp pulumi.StringPtrInput
// Redirect URL. If going to the login page URL redirects to another page, then enter that URL here.
RedirectUrl pulumi.StringPtrInput
// Indicator that allows the app to skip `groups` sync (it's also can be provided during import). Default is `false`.
SkipGroups pulumi.BoolPtrInput
// Indicator that allows the app to skip `users` sync (it's also can be provided during import). Default is `false`.
SkipUsers pulumi.BoolPtrInput
// Status of application. By default, it is `"ACTIVE"`.
Status pulumi.StringPtrInput
// The URL of the sign-in page for this app.
Url pulumi.StringPtrInput
// A regular expression that further restricts url to the specified regular expression.
UrlRegex pulumi.StringPtrInput
// Username template. Default: `"${source.login}"`
UserNameTemplate pulumi.StringPtrInput
// Push username on update. Valid values: `"PUSH"` and `"DONT_PUSH"`.
UserNameTemplatePushStatus pulumi.StringPtrInput
// Username template suffix.
UserNameTemplateSuffix pulumi.StringPtrInput
// Username template type. Default: `"BUILT_IN"`.
UserNameTemplateType pulumi.StringPtrInput
// Login username field.
UsernameField pulumi.StringPtrInput
// The users assigned to the application. See `app.User` for a more flexible approach.
//
// Deprecated: The direct configuration of users in this app resource is deprecated, please ensure you use the resource `okta_app_user` for this functionality.
Users SwaUserArrayInput
}
func (SwaArgs) ElementType() reflect.Type {
return reflect.TypeOf((*swaArgs)(nil)).Elem()
}
type SwaInput interface {
pulumi.Input
ToSwaOutput() SwaOutput
ToSwaOutputWithContext(ctx context.Context) SwaOutput
}
func (*Swa) ElementType() reflect.Type {
return reflect.TypeOf((**Swa)(nil)).Elem()
}
func (i *Swa) ToSwaOutput() SwaOutput {
return i.ToSwaOutputWithContext(context.Background())
}
func (i *Swa) ToSwaOutputWithContext(ctx context.Context) SwaOutput {
return pulumi.ToOutputWithContext(ctx, i).(SwaOutput)
}
// SwaArrayInput is an input type that accepts SwaArray and SwaArrayOutput values.
// You can construct a concrete instance of `SwaArrayInput` via:
//
// SwaArray{ SwaArgs{...} }
type SwaArrayInput interface {
pulumi.Input
ToSwaArrayOutput() SwaArrayOutput
ToSwaArrayOutputWithContext(context.Context) SwaArrayOutput
}
type SwaArray []SwaInput
func (SwaArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*Swa)(nil)).Elem()
}
func (i SwaArray) ToSwaArrayOutput() SwaArrayOutput {
return i.ToSwaArrayOutputWithContext(context.Background())
}
func (i SwaArray) ToSwaArrayOutputWithContext(ctx context.Context) SwaArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(SwaArrayOutput)
}
// SwaMapInput is an input type that accepts SwaMap and SwaMapOutput values.
// You can construct a concrete instance of `SwaMapInput` via:
//
// SwaMap{ "key": SwaArgs{...} }
type SwaMapInput interface {
pulumi.Input
ToSwaMapOutput() SwaMapOutput
ToSwaMapOutputWithContext(context.Context) SwaMapOutput
}
type SwaMap map[string]SwaInput
func (SwaMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*Swa)(nil)).Elem()
}
func (i SwaMap) ToSwaMapOutput() SwaMapOutput {
return i.ToSwaMapOutputWithContext(context.Background())
}
func (i SwaMap) ToSwaMapOutputWithContext(ctx context.Context) SwaMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(SwaMapOutput)
}
type SwaOutput struct{ *pulumi.OutputState }
func (SwaOutput) ElementType() reflect.Type {
return reflect.TypeOf((**Swa)(nil)).Elem()
}
func (o SwaOutput) ToSwaOutput() SwaOutput {
return o
}
func (o SwaOutput) ToSwaOutputWithContext(ctx context.Context) SwaOutput {
return o
}
// Custom error page URL.
func (o SwaOutput) AccessibilityErrorRedirectUrl() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Swa) pulumi.StringPtrOutput { return v.AccessibilityErrorRedirectUrl }).(pulumi.StringPtrOutput)
}
// Custom login page for this application.
func (o SwaOutput) AccessibilityLoginRedirectUrl() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Swa) pulumi.StringPtrOutput { return v.AccessibilityLoginRedirectUrl }).(pulumi.StringPtrOutput)
}
// Enable self-service. By default, it is `false`.
func (o SwaOutput) AccessibilitySelfService() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *Swa) pulumi.BoolPtrOutput { return v.AccessibilitySelfService }).(pulumi.BoolPtrOutput)
}
// Application notes for admins.
func (o SwaOutput) AdminNote() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Swa) pulumi.StringPtrOutput { return v.AdminNote }).(pulumi.StringPtrOutput)
}
// Displays specific appLinks for the app. The value for each application link should be boolean.
func (o SwaOutput) AppLinksJson() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Swa) pulumi.StringPtrOutput { return v.AppLinksJson }).(pulumi.StringPtrOutput)
}
// Display auto submit toolbar.
func (o SwaOutput) AutoSubmitToolbar() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *Swa) pulumi.BoolPtrOutput { return v.AutoSubmitToolbar }).(pulumi.BoolPtrOutput)
}
// Login button field.
func (o SwaOutput) ButtonField() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Swa) pulumi.StringPtrOutput { return v.ButtonField }).(pulumi.StringPtrOutput)
}
// CSS selector for the checkbox.
func (o SwaOutput) Checkbox() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Swa) pulumi.StringPtrOutput { return v.Checkbox }).(pulumi.StringPtrOutput)
}
// Application notes for end users.
func (o SwaOutput) EnduserNote() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Swa) pulumi.StringPtrOutput { return v.EnduserNote }).(pulumi.StringPtrOutput)
}
// Groups associated with the application. See `app.GroupAssignment` for a more flexible approach.
//
// Deprecated: The direct configuration of groups in this app resource is deprecated, please ensure you use the resource `okta_app_group_assignments` for this functionality.
func (o SwaOutput) Groups() pulumi.StringArrayOutput {
return o.ApplyT(func(v *Swa) pulumi.StringArrayOutput { return v.Groups }).(pulumi.StringArrayOutput)
}
// Do not display application icon on mobile app.
func (o SwaOutput) HideIos() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *Swa) pulumi.BoolPtrOutput { return v.HideIos }).(pulumi.BoolPtrOutput)
}
// Do not display application icon to users.
func (o SwaOutput) HideWeb() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *Swa) pulumi.BoolPtrOutput { return v.HideWeb }).(pulumi.BoolPtrOutput)
}
// The display name of the Application.
func (o SwaOutput) Label() pulumi.StringOutput {
return o.ApplyT(func(v *Swa) pulumi.StringOutput { return v.Label }).(pulumi.StringOutput)
}
// Local file path to the logo. The file must be in PNG, JPG, or GIF format, and less than 1 MB in size.
func (o SwaOutput) Logo() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Swa) pulumi.StringPtrOutput { return v.Logo }).(pulumi.StringPtrOutput)
}
// Direct link of application logo.
func (o SwaOutput) LogoUrl() pulumi.StringOutput {
return o.ApplyT(func(v *Swa) pulumi.StringOutput { return v.LogoUrl }).(pulumi.StringOutput)
}
// Name assigned to the application by Okta.
func (o SwaOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v *Swa) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
}
// Login password field.
func (o SwaOutput) PasswordField() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Swa) pulumi.StringPtrOutput { return v.PasswordField }).(pulumi.StringPtrOutput)
}
// name of application from the Okta Integration Network, if not included a custom app will be created.
func (o SwaOutput) PreconfiguredApp() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Swa) pulumi.StringPtrOutput { return v.PreconfiguredApp }).(pulumi.StringPtrOutput)
}
// Redirect URL. If going to the login page URL redirects to another page, then enter that URL here.
func (o SwaOutput) RedirectUrl() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Swa) pulumi.StringPtrOutput { return v.RedirectUrl }).(pulumi.StringPtrOutput)
}
// Sign-on mode of application.
func (o SwaOutput) SignOnMode() pulumi.StringOutput {
return o.ApplyT(func(v *Swa) pulumi.StringOutput { return v.SignOnMode }).(pulumi.StringOutput)
}
// Indicator that allows the app to skip `groups` sync (it's also can be provided during import). Default is `false`.
func (o SwaOutput) SkipGroups() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *Swa) pulumi.BoolPtrOutput { return v.SkipGroups }).(pulumi.BoolPtrOutput)
}
// Indicator that allows the app to skip `users` sync (it's also can be provided during import). Default is `false`.
func (o SwaOutput) SkipUsers() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *Swa) pulumi.BoolPtrOutput { return v.SkipUsers }).(pulumi.BoolPtrOutput)
}
// Status of application. By default, it is `"ACTIVE"`.
func (o SwaOutput) Status() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Swa) pulumi.StringPtrOutput { return v.Status }).(pulumi.StringPtrOutput)
}
// The URL of the sign-in page for this app.
func (o SwaOutput) Url() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Swa) pulumi.StringPtrOutput { return v.Url }).(pulumi.StringPtrOutput)
}
// A regular expression that further restricts url to the specified regular expression.
func (o SwaOutput) UrlRegex() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Swa) pulumi.StringPtrOutput { return v.UrlRegex }).(pulumi.StringPtrOutput)
}
// Username template. Default: `"${source.login}"`
func (o SwaOutput) UserNameTemplate() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Swa) pulumi.StringPtrOutput { return v.UserNameTemplate }).(pulumi.StringPtrOutput)
}
// Push username on update. Valid values: `"PUSH"` and `"DONT_PUSH"`.
func (o SwaOutput) UserNameTemplatePushStatus() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Swa) pulumi.StringPtrOutput { return v.UserNameTemplatePushStatus }).(pulumi.StringPtrOutput)
}
// Username template suffix.
func (o SwaOutput) UserNameTemplateSuffix() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Swa) pulumi.StringPtrOutput { return v.UserNameTemplateSuffix }).(pulumi.StringPtrOutput)
}
// Username template type. Default: `"BUILT_IN"`.
func (o SwaOutput) UserNameTemplateType() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Swa) pulumi.StringPtrOutput { return v.UserNameTemplateType }).(pulumi.StringPtrOutput)
}
// Login username field.
func (o SwaOutput) UsernameField() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Swa) pulumi.StringPtrOutput { return v.UsernameField }).(pulumi.StringPtrOutput)
}
// The users assigned to the application. See `app.User` for a more flexible approach.
//
// Deprecated: The direct configuration of users in this app resource is deprecated, please ensure you use the resource `okta_app_user` for this functionality.
func (o SwaOutput) Users() SwaUserArrayOutput {
return o.ApplyT(func(v *Swa) SwaUserArrayOutput { return v.Users }).(SwaUserArrayOutput)
}
type SwaArrayOutput struct{ *pulumi.OutputState }
func (SwaArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*Swa)(nil)).Elem()
}
func (o SwaArrayOutput) ToSwaArrayOutput() SwaArrayOutput {
return o
}
func (o SwaArrayOutput) ToSwaArrayOutputWithContext(ctx context.Context) SwaArrayOutput {
return o
}
func (o SwaArrayOutput) Index(i pulumi.IntInput) SwaOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Swa {
return vs[0].([]*Swa)[vs[1].(int)]
}).(SwaOutput)
}
type SwaMapOutput struct{ *pulumi.OutputState }
func (SwaMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*Swa)(nil)).Elem()
}
func (o SwaMapOutput) ToSwaMapOutput() SwaMapOutput {
return o
}
func (o SwaMapOutput) ToSwaMapOutputWithContext(ctx context.Context) SwaMapOutput {
return o
}
func (o SwaMapOutput) MapIndex(k pulumi.StringInput) SwaOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Swa {
return vs[0].(map[string]*Swa)[vs[1].(string)]
}).(SwaOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*SwaInput)(nil)).Elem(), &Swa{})
pulumi.RegisterInputType(reflect.TypeOf((*SwaArrayInput)(nil)).Elem(), SwaArray{})
pulumi.RegisterInputType(reflect.TypeOf((*SwaMapInput)(nil)).Elem(), SwaMap{})
pulumi.RegisterOutputType(SwaOutput{})
pulumi.RegisterOutputType(SwaArrayOutput{})
pulumi.RegisterOutputType(SwaMapOutput{})
}