/
policyRuleProfileEnrollment.go
455 lines (398 loc) · 22.7 KB
/
policyRuleProfileEnrollment.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
// 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 okta
import (
"context"
"reflect"
"errors"
"github.com/pulumi/pulumi-okta/sdk/v4/go/okta/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// > **WARNING:** This feature is only available as a part of the Identity Engine. Contact support for further information.
//
// A [profile enrollment
// policy](https://developer.okta.com/docs/reference/api/policy/#profile-enrollment-policy)
// is limited to one default rule. This resource does not create a rule for an
// enrollment policy, it allows the default policy rule to be updated.
//
// ## Example Usage
//
// <!--Start PulumiCodeChooser -->
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi-okta/sdk/v4/go/okta"
// "github.com/pulumi/pulumi-okta/sdk/v4/go/okta/group"
// "github.com/pulumi/pulumi-okta/sdk/v4/go/okta/inline"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// examplePolicyProfileEnrollment, err := okta.NewPolicyProfileEnrollment(ctx, "examplePolicyProfileEnrollment", nil)
// if err != nil {
// return err
// }
// exampleHook, err := inline.NewHook(ctx, "exampleHook", &inline.HookArgs{
// Status: pulumi.String("ACTIVE"),
// Type: pulumi.String("com.okta.user.pre-registration"),
// Version: pulumi.String("1.0.3"),
// Channel: pulumi.StringMap{
// "type": pulumi.String("HTTP"),
// "version": pulumi.String("1.0.0"),
// "uri": pulumi.String("https://example.com/test2"),
// "method": pulumi.String("POST"),
// },
// })
// if err != nil {
// return err
// }
// exampleGroup, err := group.NewGroup(ctx, "exampleGroup", &group.GroupArgs{
// Description: pulumi.String("Group of some users"),
// })
// if err != nil {
// return err
// }
// _, err = okta.NewPolicyRuleProfileEnrollment(ctx, "examplePolicyRuleProfileEnrollment", &okta.PolicyRuleProfileEnrollmentArgs{
// PolicyId: examplePolicyProfileEnrollment.ID(),
// InlineHookId: exampleHook.ID(),
// TargetGroupId: exampleGroup.ID(),
// UnknownUserAction: pulumi.String("REGISTER"),
// EmailVerification: pulumi.Bool(true),
// Access: pulumi.String("ALLOW"),
// ProfileAttributes: okta.PolicyRuleProfileEnrollmentProfileAttributeArray{
// &okta.PolicyRuleProfileEnrollmentProfileAttributeArgs{
// Name: pulumi.String("email"),
// Label: pulumi.String("Email"),
// Required: pulumi.Bool(true),
// },
// &okta.PolicyRuleProfileEnrollmentProfileAttributeArgs{
// Name: pulumi.String("name"),
// Label: pulumi.String("Name"),
// Required: pulumi.Bool(true),
// },
// &okta.PolicyRuleProfileEnrollmentProfileAttributeArgs{
// Name: pulumi.String("t-shirt"),
// Label: pulumi.String("T-Shirt Size"),
// Required: pulumi.Bool(false),
// },
// },
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
// <!--End PulumiCodeChooser -->
//
// ## Import
//
// A Policy Rule can be imported via the Policy and Rule ID.
//
// ```sh
// $ pulumi import okta:index/policyRuleProfileEnrollment:PolicyRuleProfileEnrollment example <policy id>/<rule id>
// ```
type PolicyRuleProfileEnrollment struct {
pulumi.CustomResourceState
// Allow or deny access based on the rule conditions. Valid values are: `"ALLOW"`, `"DENY"`. Default is `"ALLOW"`.
Access pulumi.StringPtrOutput `pulumi:"access"`
// Indicates whether email verification should occur before access is granted. Default is `true`.
EmailVerification pulumi.BoolPtrOutput `pulumi:"emailVerification"`
// ID of a Registration Inline Hook.
InlineHookId pulumi.StringPtrOutput `pulumi:"inlineHookId"`
// The name of a User Profile property
Name pulumi.StringOutput `pulumi:"name"`
// Policy ID.
PolicyId pulumi.StringOutput `pulumi:"policyId"`
// A list of attributes to prompt the user during registration or progressive profiling. Where defined on the User schema, these attributes are persisted in the User profile. Non-schema attributes may also be added, which aren't persisted to the User's profile, but are included in requests to the registration inline hook. A maximum of 10 Profile properties is supported.
ProfileAttributes PolicyRuleProfileEnrollmentProfileAttributeArrayOutput `pulumi:"profileAttributes"`
// Enabled or disabled progressive profiling action rule conditions. Valid values are: `"ENABLED"`, `"DISABLED"`. Default is `"DISABLED"`.
ProgressiveProfilingAction pulumi.StringPtrOutput `pulumi:"progressiveProfilingAction"`
// Status of the Rule.
Status pulumi.StringOutput `pulumi:"status"`
// The ID of a Group that this User should be added to.
TargetGroupId pulumi.StringPtrOutput `pulumi:"targetGroupId"`
// Value created by the backend. If present all policy updates must include this attribute/value.
UiSchemaId pulumi.StringPtrOutput `pulumi:"uiSchemaId"`
// Which action should be taken if this User is new. Valid values are: `"DENY"`, `"REGISTER"`.
UnknownUserAction pulumi.StringOutput `pulumi:"unknownUserAction"`
}
// NewPolicyRuleProfileEnrollment registers a new resource with the given unique name, arguments, and options.
func NewPolicyRuleProfileEnrollment(ctx *pulumi.Context,
name string, args *PolicyRuleProfileEnrollmentArgs, opts ...pulumi.ResourceOption) (*PolicyRuleProfileEnrollment, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.PolicyId == nil {
return nil, errors.New("invalid value for required argument 'PolicyId'")
}
if args.UnknownUserAction == nil {
return nil, errors.New("invalid value for required argument 'UnknownUserAction'")
}
opts = internal.PkgResourceDefaultOpts(opts)
var resource PolicyRuleProfileEnrollment
err := ctx.RegisterResource("okta:index/policyRuleProfileEnrollment:PolicyRuleProfileEnrollment", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetPolicyRuleProfileEnrollment gets an existing PolicyRuleProfileEnrollment 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 GetPolicyRuleProfileEnrollment(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *PolicyRuleProfileEnrollmentState, opts ...pulumi.ResourceOption) (*PolicyRuleProfileEnrollment, error) {
var resource PolicyRuleProfileEnrollment
err := ctx.ReadResource("okta:index/policyRuleProfileEnrollment:PolicyRuleProfileEnrollment", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering PolicyRuleProfileEnrollment resources.
type policyRuleProfileEnrollmentState struct {
// Allow or deny access based on the rule conditions. Valid values are: `"ALLOW"`, `"DENY"`. Default is `"ALLOW"`.
Access *string `pulumi:"access"`
// Indicates whether email verification should occur before access is granted. Default is `true`.
EmailVerification *bool `pulumi:"emailVerification"`
// ID of a Registration Inline Hook.
InlineHookId *string `pulumi:"inlineHookId"`
// The name of a User Profile property
Name *string `pulumi:"name"`
// Policy ID.
PolicyId *string `pulumi:"policyId"`
// A list of attributes to prompt the user during registration or progressive profiling. Where defined on the User schema, these attributes are persisted in the User profile. Non-schema attributes may also be added, which aren't persisted to the User's profile, but are included in requests to the registration inline hook. A maximum of 10 Profile properties is supported.
ProfileAttributes []PolicyRuleProfileEnrollmentProfileAttribute `pulumi:"profileAttributes"`
// Enabled or disabled progressive profiling action rule conditions. Valid values are: `"ENABLED"`, `"DISABLED"`. Default is `"DISABLED"`.
ProgressiveProfilingAction *string `pulumi:"progressiveProfilingAction"`
// Status of the Rule.
Status *string `pulumi:"status"`
// The ID of a Group that this User should be added to.
TargetGroupId *string `pulumi:"targetGroupId"`
// Value created by the backend. If present all policy updates must include this attribute/value.
UiSchemaId *string `pulumi:"uiSchemaId"`
// Which action should be taken if this User is new. Valid values are: `"DENY"`, `"REGISTER"`.
UnknownUserAction *string `pulumi:"unknownUserAction"`
}
type PolicyRuleProfileEnrollmentState struct {
// Allow or deny access based on the rule conditions. Valid values are: `"ALLOW"`, `"DENY"`. Default is `"ALLOW"`.
Access pulumi.StringPtrInput
// Indicates whether email verification should occur before access is granted. Default is `true`.
EmailVerification pulumi.BoolPtrInput
// ID of a Registration Inline Hook.
InlineHookId pulumi.StringPtrInput
// The name of a User Profile property
Name pulumi.StringPtrInput
// Policy ID.
PolicyId pulumi.StringPtrInput
// A list of attributes to prompt the user during registration or progressive profiling. Where defined on the User schema, these attributes are persisted in the User profile. Non-schema attributes may also be added, which aren't persisted to the User's profile, but are included in requests to the registration inline hook. A maximum of 10 Profile properties is supported.
ProfileAttributes PolicyRuleProfileEnrollmentProfileAttributeArrayInput
// Enabled or disabled progressive profiling action rule conditions. Valid values are: `"ENABLED"`, `"DISABLED"`. Default is `"DISABLED"`.
ProgressiveProfilingAction pulumi.StringPtrInput
// Status of the Rule.
Status pulumi.StringPtrInput
// The ID of a Group that this User should be added to.
TargetGroupId pulumi.StringPtrInput
// Value created by the backend. If present all policy updates must include this attribute/value.
UiSchemaId pulumi.StringPtrInput
// Which action should be taken if this User is new. Valid values are: `"DENY"`, `"REGISTER"`.
UnknownUserAction pulumi.StringPtrInput
}
func (PolicyRuleProfileEnrollmentState) ElementType() reflect.Type {
return reflect.TypeOf((*policyRuleProfileEnrollmentState)(nil)).Elem()
}
type policyRuleProfileEnrollmentArgs struct {
// Allow or deny access based on the rule conditions. Valid values are: `"ALLOW"`, `"DENY"`. Default is `"ALLOW"`.
Access *string `pulumi:"access"`
// Indicates whether email verification should occur before access is granted. Default is `true`.
EmailVerification *bool `pulumi:"emailVerification"`
// ID of a Registration Inline Hook.
InlineHookId *string `pulumi:"inlineHookId"`
// Policy ID.
PolicyId string `pulumi:"policyId"`
// A list of attributes to prompt the user during registration or progressive profiling. Where defined on the User schema, these attributes are persisted in the User profile. Non-schema attributes may also be added, which aren't persisted to the User's profile, but are included in requests to the registration inline hook. A maximum of 10 Profile properties is supported.
ProfileAttributes []PolicyRuleProfileEnrollmentProfileAttribute `pulumi:"profileAttributes"`
// Enabled or disabled progressive profiling action rule conditions. Valid values are: `"ENABLED"`, `"DISABLED"`. Default is `"DISABLED"`.
ProgressiveProfilingAction *string `pulumi:"progressiveProfilingAction"`
// The ID of a Group that this User should be added to.
TargetGroupId *string `pulumi:"targetGroupId"`
// Value created by the backend. If present all policy updates must include this attribute/value.
UiSchemaId *string `pulumi:"uiSchemaId"`
// Which action should be taken if this User is new. Valid values are: `"DENY"`, `"REGISTER"`.
UnknownUserAction string `pulumi:"unknownUserAction"`
}
// The set of arguments for constructing a PolicyRuleProfileEnrollment resource.
type PolicyRuleProfileEnrollmentArgs struct {
// Allow or deny access based on the rule conditions. Valid values are: `"ALLOW"`, `"DENY"`. Default is `"ALLOW"`.
Access pulumi.StringPtrInput
// Indicates whether email verification should occur before access is granted. Default is `true`.
EmailVerification pulumi.BoolPtrInput
// ID of a Registration Inline Hook.
InlineHookId pulumi.StringPtrInput
// Policy ID.
PolicyId pulumi.StringInput
// A list of attributes to prompt the user during registration or progressive profiling. Where defined on the User schema, these attributes are persisted in the User profile. Non-schema attributes may also be added, which aren't persisted to the User's profile, but are included in requests to the registration inline hook. A maximum of 10 Profile properties is supported.
ProfileAttributes PolicyRuleProfileEnrollmentProfileAttributeArrayInput
// Enabled or disabled progressive profiling action rule conditions. Valid values are: `"ENABLED"`, `"DISABLED"`. Default is `"DISABLED"`.
ProgressiveProfilingAction pulumi.StringPtrInput
// The ID of a Group that this User should be added to.
TargetGroupId pulumi.StringPtrInput
// Value created by the backend. If present all policy updates must include this attribute/value.
UiSchemaId pulumi.StringPtrInput
// Which action should be taken if this User is new. Valid values are: `"DENY"`, `"REGISTER"`.
UnknownUserAction pulumi.StringInput
}
func (PolicyRuleProfileEnrollmentArgs) ElementType() reflect.Type {
return reflect.TypeOf((*policyRuleProfileEnrollmentArgs)(nil)).Elem()
}
type PolicyRuleProfileEnrollmentInput interface {
pulumi.Input
ToPolicyRuleProfileEnrollmentOutput() PolicyRuleProfileEnrollmentOutput
ToPolicyRuleProfileEnrollmentOutputWithContext(ctx context.Context) PolicyRuleProfileEnrollmentOutput
}
func (*PolicyRuleProfileEnrollment) ElementType() reflect.Type {
return reflect.TypeOf((**PolicyRuleProfileEnrollment)(nil)).Elem()
}
func (i *PolicyRuleProfileEnrollment) ToPolicyRuleProfileEnrollmentOutput() PolicyRuleProfileEnrollmentOutput {
return i.ToPolicyRuleProfileEnrollmentOutputWithContext(context.Background())
}
func (i *PolicyRuleProfileEnrollment) ToPolicyRuleProfileEnrollmentOutputWithContext(ctx context.Context) PolicyRuleProfileEnrollmentOutput {
return pulumi.ToOutputWithContext(ctx, i).(PolicyRuleProfileEnrollmentOutput)
}
// PolicyRuleProfileEnrollmentArrayInput is an input type that accepts PolicyRuleProfileEnrollmentArray and PolicyRuleProfileEnrollmentArrayOutput values.
// You can construct a concrete instance of `PolicyRuleProfileEnrollmentArrayInput` via:
//
// PolicyRuleProfileEnrollmentArray{ PolicyRuleProfileEnrollmentArgs{...} }
type PolicyRuleProfileEnrollmentArrayInput interface {
pulumi.Input
ToPolicyRuleProfileEnrollmentArrayOutput() PolicyRuleProfileEnrollmentArrayOutput
ToPolicyRuleProfileEnrollmentArrayOutputWithContext(context.Context) PolicyRuleProfileEnrollmentArrayOutput
}
type PolicyRuleProfileEnrollmentArray []PolicyRuleProfileEnrollmentInput
func (PolicyRuleProfileEnrollmentArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*PolicyRuleProfileEnrollment)(nil)).Elem()
}
func (i PolicyRuleProfileEnrollmentArray) ToPolicyRuleProfileEnrollmentArrayOutput() PolicyRuleProfileEnrollmentArrayOutput {
return i.ToPolicyRuleProfileEnrollmentArrayOutputWithContext(context.Background())
}
func (i PolicyRuleProfileEnrollmentArray) ToPolicyRuleProfileEnrollmentArrayOutputWithContext(ctx context.Context) PolicyRuleProfileEnrollmentArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(PolicyRuleProfileEnrollmentArrayOutput)
}
// PolicyRuleProfileEnrollmentMapInput is an input type that accepts PolicyRuleProfileEnrollmentMap and PolicyRuleProfileEnrollmentMapOutput values.
// You can construct a concrete instance of `PolicyRuleProfileEnrollmentMapInput` via:
//
// PolicyRuleProfileEnrollmentMap{ "key": PolicyRuleProfileEnrollmentArgs{...} }
type PolicyRuleProfileEnrollmentMapInput interface {
pulumi.Input
ToPolicyRuleProfileEnrollmentMapOutput() PolicyRuleProfileEnrollmentMapOutput
ToPolicyRuleProfileEnrollmentMapOutputWithContext(context.Context) PolicyRuleProfileEnrollmentMapOutput
}
type PolicyRuleProfileEnrollmentMap map[string]PolicyRuleProfileEnrollmentInput
func (PolicyRuleProfileEnrollmentMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*PolicyRuleProfileEnrollment)(nil)).Elem()
}
func (i PolicyRuleProfileEnrollmentMap) ToPolicyRuleProfileEnrollmentMapOutput() PolicyRuleProfileEnrollmentMapOutput {
return i.ToPolicyRuleProfileEnrollmentMapOutputWithContext(context.Background())
}
func (i PolicyRuleProfileEnrollmentMap) ToPolicyRuleProfileEnrollmentMapOutputWithContext(ctx context.Context) PolicyRuleProfileEnrollmentMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(PolicyRuleProfileEnrollmentMapOutput)
}
type PolicyRuleProfileEnrollmentOutput struct{ *pulumi.OutputState }
func (PolicyRuleProfileEnrollmentOutput) ElementType() reflect.Type {
return reflect.TypeOf((**PolicyRuleProfileEnrollment)(nil)).Elem()
}
func (o PolicyRuleProfileEnrollmentOutput) ToPolicyRuleProfileEnrollmentOutput() PolicyRuleProfileEnrollmentOutput {
return o
}
func (o PolicyRuleProfileEnrollmentOutput) ToPolicyRuleProfileEnrollmentOutputWithContext(ctx context.Context) PolicyRuleProfileEnrollmentOutput {
return o
}
// Allow or deny access based on the rule conditions. Valid values are: `"ALLOW"`, `"DENY"`. Default is `"ALLOW"`.
func (o PolicyRuleProfileEnrollmentOutput) Access() pulumi.StringPtrOutput {
return o.ApplyT(func(v *PolicyRuleProfileEnrollment) pulumi.StringPtrOutput { return v.Access }).(pulumi.StringPtrOutput)
}
// Indicates whether email verification should occur before access is granted. Default is `true`.
func (o PolicyRuleProfileEnrollmentOutput) EmailVerification() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *PolicyRuleProfileEnrollment) pulumi.BoolPtrOutput { return v.EmailVerification }).(pulumi.BoolPtrOutput)
}
// ID of a Registration Inline Hook.
func (o PolicyRuleProfileEnrollmentOutput) InlineHookId() pulumi.StringPtrOutput {
return o.ApplyT(func(v *PolicyRuleProfileEnrollment) pulumi.StringPtrOutput { return v.InlineHookId }).(pulumi.StringPtrOutput)
}
// The name of a User Profile property
func (o PolicyRuleProfileEnrollmentOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v *PolicyRuleProfileEnrollment) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
}
// Policy ID.
func (o PolicyRuleProfileEnrollmentOutput) PolicyId() pulumi.StringOutput {
return o.ApplyT(func(v *PolicyRuleProfileEnrollment) pulumi.StringOutput { return v.PolicyId }).(pulumi.StringOutput)
}
// A list of attributes to prompt the user during registration or progressive profiling. Where defined on the User schema, these attributes are persisted in the User profile. Non-schema attributes may also be added, which aren't persisted to the User's profile, but are included in requests to the registration inline hook. A maximum of 10 Profile properties is supported.
func (o PolicyRuleProfileEnrollmentOutput) ProfileAttributes() PolicyRuleProfileEnrollmentProfileAttributeArrayOutput {
return o.ApplyT(func(v *PolicyRuleProfileEnrollment) PolicyRuleProfileEnrollmentProfileAttributeArrayOutput {
return v.ProfileAttributes
}).(PolicyRuleProfileEnrollmentProfileAttributeArrayOutput)
}
// Enabled or disabled progressive profiling action rule conditions. Valid values are: `"ENABLED"`, `"DISABLED"`. Default is `"DISABLED"`.
func (o PolicyRuleProfileEnrollmentOutput) ProgressiveProfilingAction() pulumi.StringPtrOutput {
return o.ApplyT(func(v *PolicyRuleProfileEnrollment) pulumi.StringPtrOutput { return v.ProgressiveProfilingAction }).(pulumi.StringPtrOutput)
}
// Status of the Rule.
func (o PolicyRuleProfileEnrollmentOutput) Status() pulumi.StringOutput {
return o.ApplyT(func(v *PolicyRuleProfileEnrollment) pulumi.StringOutput { return v.Status }).(pulumi.StringOutput)
}
// The ID of a Group that this User should be added to.
func (o PolicyRuleProfileEnrollmentOutput) TargetGroupId() pulumi.StringPtrOutput {
return o.ApplyT(func(v *PolicyRuleProfileEnrollment) pulumi.StringPtrOutput { return v.TargetGroupId }).(pulumi.StringPtrOutput)
}
// Value created by the backend. If present all policy updates must include this attribute/value.
func (o PolicyRuleProfileEnrollmentOutput) UiSchemaId() pulumi.StringPtrOutput {
return o.ApplyT(func(v *PolicyRuleProfileEnrollment) pulumi.StringPtrOutput { return v.UiSchemaId }).(pulumi.StringPtrOutput)
}
// Which action should be taken if this User is new. Valid values are: `"DENY"`, `"REGISTER"`.
func (o PolicyRuleProfileEnrollmentOutput) UnknownUserAction() pulumi.StringOutput {
return o.ApplyT(func(v *PolicyRuleProfileEnrollment) pulumi.StringOutput { return v.UnknownUserAction }).(pulumi.StringOutput)
}
type PolicyRuleProfileEnrollmentArrayOutput struct{ *pulumi.OutputState }
func (PolicyRuleProfileEnrollmentArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*PolicyRuleProfileEnrollment)(nil)).Elem()
}
func (o PolicyRuleProfileEnrollmentArrayOutput) ToPolicyRuleProfileEnrollmentArrayOutput() PolicyRuleProfileEnrollmentArrayOutput {
return o
}
func (o PolicyRuleProfileEnrollmentArrayOutput) ToPolicyRuleProfileEnrollmentArrayOutputWithContext(ctx context.Context) PolicyRuleProfileEnrollmentArrayOutput {
return o
}
func (o PolicyRuleProfileEnrollmentArrayOutput) Index(i pulumi.IntInput) PolicyRuleProfileEnrollmentOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *PolicyRuleProfileEnrollment {
return vs[0].([]*PolicyRuleProfileEnrollment)[vs[1].(int)]
}).(PolicyRuleProfileEnrollmentOutput)
}
type PolicyRuleProfileEnrollmentMapOutput struct{ *pulumi.OutputState }
func (PolicyRuleProfileEnrollmentMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*PolicyRuleProfileEnrollment)(nil)).Elem()
}
func (o PolicyRuleProfileEnrollmentMapOutput) ToPolicyRuleProfileEnrollmentMapOutput() PolicyRuleProfileEnrollmentMapOutput {
return o
}
func (o PolicyRuleProfileEnrollmentMapOutput) ToPolicyRuleProfileEnrollmentMapOutputWithContext(ctx context.Context) PolicyRuleProfileEnrollmentMapOutput {
return o
}
func (o PolicyRuleProfileEnrollmentMapOutput) MapIndex(k pulumi.StringInput) PolicyRuleProfileEnrollmentOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *PolicyRuleProfileEnrollment {
return vs[0].(map[string]*PolicyRuleProfileEnrollment)[vs[1].(string)]
}).(PolicyRuleProfileEnrollmentOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*PolicyRuleProfileEnrollmentInput)(nil)).Elem(), &PolicyRuleProfileEnrollment{})
pulumi.RegisterInputType(reflect.TypeOf((*PolicyRuleProfileEnrollmentArrayInput)(nil)).Elem(), PolicyRuleProfileEnrollmentArray{})
pulumi.RegisterInputType(reflect.TypeOf((*PolicyRuleProfileEnrollmentMapInput)(nil)).Elem(), PolicyRuleProfileEnrollmentMap{})
pulumi.RegisterOutputType(PolicyRuleProfileEnrollmentOutput{})
pulumi.RegisterOutputType(PolicyRuleProfileEnrollmentArrayOutput{})
pulumi.RegisterOutputType(PolicyRuleProfileEnrollmentMapOutput{})
}