/
hardcodedClaimProtocolMapper.go
475 lines (419 loc) · 20.4 KB
/
hardcodedClaimProtocolMapper.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
// 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 openid
import (
"context"
"reflect"
"errors"
"github.com/pulumi/pulumi-keycloak/sdk/v5/go/keycloak/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// ## # openid.HardcodedClaimProtocolMapper
//
// Allows for creating and managing hardcoded claim protocol mappers within
// Keycloak.
//
// Hardcoded claim protocol mappers allow you to define a claim with a hardcoded
// value. Protocol mappers can be defined for a single client, or they can
// be defined for a client scope which can be shared between multiple different
// clients.
//
// ### Example Usage (Client)
//
// <!--Start PulumiCodeChooser -->
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi-keycloak/sdk/v5/go/keycloak"
// "github.com/pulumi/pulumi-keycloak/sdk/v5/go/keycloak/openid"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// realm, err := keycloak.NewRealm(ctx, "realm", &keycloak.RealmArgs{
// Enabled: pulumi.Bool(true),
// Realm: pulumi.String("my-realm"),
// })
// if err != nil {
// return err
// }
// openidClient, err := openid.NewClient(ctx, "openidClient", &openid.ClientArgs{
// AccessType: pulumi.String("CONFIDENTIAL"),
// ClientId: pulumi.String("test-client"),
// Enabled: pulumi.Bool(true),
// RealmId: realm.ID(),
// ValidRedirectUris: pulumi.StringArray{
// pulumi.String("http://localhost:8080/openid-callback"),
// },
// })
// if err != nil {
// return err
// }
// _, err = openid.NewHardcodedClaimProtocolMapper(ctx, "hardcodedClaimMapper", &openid.HardcodedClaimProtocolMapperArgs{
// ClaimName: pulumi.String("foo"),
// ClaimValue: pulumi.String("bar"),
// ClientId: openidClient.ID(),
// RealmId: realm.ID(),
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
// <!--End PulumiCodeChooser -->
//
// ### Example Usage (Client Scope)
//
// <!--Start PulumiCodeChooser -->
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi-keycloak/sdk/v5/go/keycloak"
// "github.com/pulumi/pulumi-keycloak/sdk/v5/go/keycloak/openid"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// realm, err := keycloak.NewRealm(ctx, "realm", &keycloak.RealmArgs{
// Enabled: pulumi.Bool(true),
// Realm: pulumi.String("my-realm"),
// })
// if err != nil {
// return err
// }
// clientScope, err := openid.NewClientScope(ctx, "clientScope", &openid.ClientScopeArgs{
// RealmId: realm.ID(),
// })
// if err != nil {
// return err
// }
// _, err = openid.NewHardcodedClaimProtocolMapper(ctx, "hardcodedClaimMapper", &openid.HardcodedClaimProtocolMapperArgs{
// ClaimName: pulumi.String("foo"),
// ClaimValue: pulumi.String("bar"),
// ClientScopeId: clientScope.ID(),
// RealmId: realm.ID(),
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
// <!--End PulumiCodeChooser -->
//
// ### Argument Reference
//
// The following arguments are supported:
//
// - `realmId` - (Required) The realm this protocol mapper exists within.
// - `clientId` - (Required if `clientScopeId` is not specified) The client this protocol mapper is attached to.
// - `clientScopeId` - (Required if `clientId` is not specified) The client scope this protocol mapper is attached to.
// - `name` - (Required) The display name of this protocol mapper in the GUI.
// - `claimName` - (Required) The name of the claim to insert into a token.
// - `claimValue` - (Required) The hardcoded value of the claim.
// - `claimValueType` - (Optional) The claim type used when serializing JSON tokens. Can be one of `String`, `long`, `int`, or `boolean`. Defaults to `String`.
// - `addToIdToken` - (Optional) Indicates if the property should be added as a claim to the id token. Defaults to `true`.
// - `addToAccessToken` - (Optional) Indicates if the property should be added as a claim to the access token. Defaults to `true`.
// - `addToUserinfo` - (Optional) Indicates if the property should be added as a claim to the UserInfo response body. Defaults to `true`.
//
// ### Import
//
// Protocol mappers can be imported using one of the following formats:
// - Client: `{{realm_id}}/client/{{client_keycloak_id}}/{{protocol_mapper_id}}`
// - Client Scope: `{{realm_id}}/client-scope/{{client_scope_keycloak_id}}/{{protocol_mapper_id}}`
//
// Example:
type HardcodedClaimProtocolMapper struct {
pulumi.CustomResourceState
// Indicates if the attribute should be a claim in the access token.
AddToAccessToken pulumi.BoolPtrOutput `pulumi:"addToAccessToken"`
// Indicates if the attribute should be a claim in the id token.
AddToIdToken pulumi.BoolPtrOutput `pulumi:"addToIdToken"`
// Indicates if the attribute should appear in the userinfo response body.
AddToUserinfo pulumi.BoolPtrOutput `pulumi:"addToUserinfo"`
ClaimName pulumi.StringOutput `pulumi:"claimName"`
ClaimValue pulumi.StringOutput `pulumi:"claimValue"`
// Claim type used when serializing tokens.
ClaimValueType pulumi.StringPtrOutput `pulumi:"claimValueType"`
// The mapper's associated client. Cannot be used at the same time as client_scope_id.
ClientId pulumi.StringPtrOutput `pulumi:"clientId"`
// The mapper's associated client scope. Cannot be used at the same time as client_id.
ClientScopeId pulumi.StringPtrOutput `pulumi:"clientScopeId"`
// A human-friendly name that will appear in the Keycloak console.
Name pulumi.StringOutput `pulumi:"name"`
// The realm id where the associated client or client scope exists.
RealmId pulumi.StringOutput `pulumi:"realmId"`
}
// NewHardcodedClaimProtocolMapper registers a new resource with the given unique name, arguments, and options.
func NewHardcodedClaimProtocolMapper(ctx *pulumi.Context,
name string, args *HardcodedClaimProtocolMapperArgs, opts ...pulumi.ResourceOption) (*HardcodedClaimProtocolMapper, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.ClaimName == nil {
return nil, errors.New("invalid value for required argument 'ClaimName'")
}
if args.ClaimValue == nil {
return nil, errors.New("invalid value for required argument 'ClaimValue'")
}
if args.RealmId == nil {
return nil, errors.New("invalid value for required argument 'RealmId'")
}
opts = internal.PkgResourceDefaultOpts(opts)
var resource HardcodedClaimProtocolMapper
err := ctx.RegisterResource("keycloak:openid/hardcodedClaimProtocolMapper:HardcodedClaimProtocolMapper", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetHardcodedClaimProtocolMapper gets an existing HardcodedClaimProtocolMapper 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 GetHardcodedClaimProtocolMapper(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *HardcodedClaimProtocolMapperState, opts ...pulumi.ResourceOption) (*HardcodedClaimProtocolMapper, error) {
var resource HardcodedClaimProtocolMapper
err := ctx.ReadResource("keycloak:openid/hardcodedClaimProtocolMapper:HardcodedClaimProtocolMapper", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering HardcodedClaimProtocolMapper resources.
type hardcodedClaimProtocolMapperState struct {
// Indicates if the attribute should be a claim in the access token.
AddToAccessToken *bool `pulumi:"addToAccessToken"`
// Indicates if the attribute should be a claim in the id token.
AddToIdToken *bool `pulumi:"addToIdToken"`
// Indicates if the attribute should appear in the userinfo response body.
AddToUserinfo *bool `pulumi:"addToUserinfo"`
ClaimName *string `pulumi:"claimName"`
ClaimValue *string `pulumi:"claimValue"`
// Claim type used when serializing tokens.
ClaimValueType *string `pulumi:"claimValueType"`
// The mapper's associated client. Cannot be used at the same time as client_scope_id.
ClientId *string `pulumi:"clientId"`
// The mapper's associated client scope. Cannot be used at the same time as client_id.
ClientScopeId *string `pulumi:"clientScopeId"`
// A human-friendly name that will appear in the Keycloak console.
Name *string `pulumi:"name"`
// The realm id where the associated client or client scope exists.
RealmId *string `pulumi:"realmId"`
}
type HardcodedClaimProtocolMapperState struct {
// Indicates if the attribute should be a claim in the access token.
AddToAccessToken pulumi.BoolPtrInput
// Indicates if the attribute should be a claim in the id token.
AddToIdToken pulumi.BoolPtrInput
// Indicates if the attribute should appear in the userinfo response body.
AddToUserinfo pulumi.BoolPtrInput
ClaimName pulumi.StringPtrInput
ClaimValue pulumi.StringPtrInput
// Claim type used when serializing tokens.
ClaimValueType pulumi.StringPtrInput
// The mapper's associated client. Cannot be used at the same time as client_scope_id.
ClientId pulumi.StringPtrInput
// The mapper's associated client scope. Cannot be used at the same time as client_id.
ClientScopeId pulumi.StringPtrInput
// A human-friendly name that will appear in the Keycloak console.
Name pulumi.StringPtrInput
// The realm id where the associated client or client scope exists.
RealmId pulumi.StringPtrInput
}
func (HardcodedClaimProtocolMapperState) ElementType() reflect.Type {
return reflect.TypeOf((*hardcodedClaimProtocolMapperState)(nil)).Elem()
}
type hardcodedClaimProtocolMapperArgs struct {
// Indicates if the attribute should be a claim in the access token.
AddToAccessToken *bool `pulumi:"addToAccessToken"`
// Indicates if the attribute should be a claim in the id token.
AddToIdToken *bool `pulumi:"addToIdToken"`
// Indicates if the attribute should appear in the userinfo response body.
AddToUserinfo *bool `pulumi:"addToUserinfo"`
ClaimName string `pulumi:"claimName"`
ClaimValue string `pulumi:"claimValue"`
// Claim type used when serializing tokens.
ClaimValueType *string `pulumi:"claimValueType"`
// The mapper's associated client. Cannot be used at the same time as client_scope_id.
ClientId *string `pulumi:"clientId"`
// The mapper's associated client scope. Cannot be used at the same time as client_id.
ClientScopeId *string `pulumi:"clientScopeId"`
// A human-friendly name that will appear in the Keycloak console.
Name *string `pulumi:"name"`
// The realm id where the associated client or client scope exists.
RealmId string `pulumi:"realmId"`
}
// The set of arguments for constructing a HardcodedClaimProtocolMapper resource.
type HardcodedClaimProtocolMapperArgs struct {
// Indicates if the attribute should be a claim in the access token.
AddToAccessToken pulumi.BoolPtrInput
// Indicates if the attribute should be a claim in the id token.
AddToIdToken pulumi.BoolPtrInput
// Indicates if the attribute should appear in the userinfo response body.
AddToUserinfo pulumi.BoolPtrInput
ClaimName pulumi.StringInput
ClaimValue pulumi.StringInput
// Claim type used when serializing tokens.
ClaimValueType pulumi.StringPtrInput
// The mapper's associated client. Cannot be used at the same time as client_scope_id.
ClientId pulumi.StringPtrInput
// The mapper's associated client scope. Cannot be used at the same time as client_id.
ClientScopeId pulumi.StringPtrInput
// A human-friendly name that will appear in the Keycloak console.
Name pulumi.StringPtrInput
// The realm id where the associated client or client scope exists.
RealmId pulumi.StringInput
}
func (HardcodedClaimProtocolMapperArgs) ElementType() reflect.Type {
return reflect.TypeOf((*hardcodedClaimProtocolMapperArgs)(nil)).Elem()
}
type HardcodedClaimProtocolMapperInput interface {
pulumi.Input
ToHardcodedClaimProtocolMapperOutput() HardcodedClaimProtocolMapperOutput
ToHardcodedClaimProtocolMapperOutputWithContext(ctx context.Context) HardcodedClaimProtocolMapperOutput
}
func (*HardcodedClaimProtocolMapper) ElementType() reflect.Type {
return reflect.TypeOf((**HardcodedClaimProtocolMapper)(nil)).Elem()
}
func (i *HardcodedClaimProtocolMapper) ToHardcodedClaimProtocolMapperOutput() HardcodedClaimProtocolMapperOutput {
return i.ToHardcodedClaimProtocolMapperOutputWithContext(context.Background())
}
func (i *HardcodedClaimProtocolMapper) ToHardcodedClaimProtocolMapperOutputWithContext(ctx context.Context) HardcodedClaimProtocolMapperOutput {
return pulumi.ToOutputWithContext(ctx, i).(HardcodedClaimProtocolMapperOutput)
}
// HardcodedClaimProtocolMapperArrayInput is an input type that accepts HardcodedClaimProtocolMapperArray and HardcodedClaimProtocolMapperArrayOutput values.
// You can construct a concrete instance of `HardcodedClaimProtocolMapperArrayInput` via:
//
// HardcodedClaimProtocolMapperArray{ HardcodedClaimProtocolMapperArgs{...} }
type HardcodedClaimProtocolMapperArrayInput interface {
pulumi.Input
ToHardcodedClaimProtocolMapperArrayOutput() HardcodedClaimProtocolMapperArrayOutput
ToHardcodedClaimProtocolMapperArrayOutputWithContext(context.Context) HardcodedClaimProtocolMapperArrayOutput
}
type HardcodedClaimProtocolMapperArray []HardcodedClaimProtocolMapperInput
func (HardcodedClaimProtocolMapperArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*HardcodedClaimProtocolMapper)(nil)).Elem()
}
func (i HardcodedClaimProtocolMapperArray) ToHardcodedClaimProtocolMapperArrayOutput() HardcodedClaimProtocolMapperArrayOutput {
return i.ToHardcodedClaimProtocolMapperArrayOutputWithContext(context.Background())
}
func (i HardcodedClaimProtocolMapperArray) ToHardcodedClaimProtocolMapperArrayOutputWithContext(ctx context.Context) HardcodedClaimProtocolMapperArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(HardcodedClaimProtocolMapperArrayOutput)
}
// HardcodedClaimProtocolMapperMapInput is an input type that accepts HardcodedClaimProtocolMapperMap and HardcodedClaimProtocolMapperMapOutput values.
// You can construct a concrete instance of `HardcodedClaimProtocolMapperMapInput` via:
//
// HardcodedClaimProtocolMapperMap{ "key": HardcodedClaimProtocolMapperArgs{...} }
type HardcodedClaimProtocolMapperMapInput interface {
pulumi.Input
ToHardcodedClaimProtocolMapperMapOutput() HardcodedClaimProtocolMapperMapOutput
ToHardcodedClaimProtocolMapperMapOutputWithContext(context.Context) HardcodedClaimProtocolMapperMapOutput
}
type HardcodedClaimProtocolMapperMap map[string]HardcodedClaimProtocolMapperInput
func (HardcodedClaimProtocolMapperMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*HardcodedClaimProtocolMapper)(nil)).Elem()
}
func (i HardcodedClaimProtocolMapperMap) ToHardcodedClaimProtocolMapperMapOutput() HardcodedClaimProtocolMapperMapOutput {
return i.ToHardcodedClaimProtocolMapperMapOutputWithContext(context.Background())
}
func (i HardcodedClaimProtocolMapperMap) ToHardcodedClaimProtocolMapperMapOutputWithContext(ctx context.Context) HardcodedClaimProtocolMapperMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(HardcodedClaimProtocolMapperMapOutput)
}
type HardcodedClaimProtocolMapperOutput struct{ *pulumi.OutputState }
func (HardcodedClaimProtocolMapperOutput) ElementType() reflect.Type {
return reflect.TypeOf((**HardcodedClaimProtocolMapper)(nil)).Elem()
}
func (o HardcodedClaimProtocolMapperOutput) ToHardcodedClaimProtocolMapperOutput() HardcodedClaimProtocolMapperOutput {
return o
}
func (o HardcodedClaimProtocolMapperOutput) ToHardcodedClaimProtocolMapperOutputWithContext(ctx context.Context) HardcodedClaimProtocolMapperOutput {
return o
}
// Indicates if the attribute should be a claim in the access token.
func (o HardcodedClaimProtocolMapperOutput) AddToAccessToken() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *HardcodedClaimProtocolMapper) pulumi.BoolPtrOutput { return v.AddToAccessToken }).(pulumi.BoolPtrOutput)
}
// Indicates if the attribute should be a claim in the id token.
func (o HardcodedClaimProtocolMapperOutput) AddToIdToken() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *HardcodedClaimProtocolMapper) pulumi.BoolPtrOutput { return v.AddToIdToken }).(pulumi.BoolPtrOutput)
}
// Indicates if the attribute should appear in the userinfo response body.
func (o HardcodedClaimProtocolMapperOutput) AddToUserinfo() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *HardcodedClaimProtocolMapper) pulumi.BoolPtrOutput { return v.AddToUserinfo }).(pulumi.BoolPtrOutput)
}
func (o HardcodedClaimProtocolMapperOutput) ClaimName() pulumi.StringOutput {
return o.ApplyT(func(v *HardcodedClaimProtocolMapper) pulumi.StringOutput { return v.ClaimName }).(pulumi.StringOutput)
}
func (o HardcodedClaimProtocolMapperOutput) ClaimValue() pulumi.StringOutput {
return o.ApplyT(func(v *HardcodedClaimProtocolMapper) pulumi.StringOutput { return v.ClaimValue }).(pulumi.StringOutput)
}
// Claim type used when serializing tokens.
func (o HardcodedClaimProtocolMapperOutput) ClaimValueType() pulumi.StringPtrOutput {
return o.ApplyT(func(v *HardcodedClaimProtocolMapper) pulumi.StringPtrOutput { return v.ClaimValueType }).(pulumi.StringPtrOutput)
}
// The mapper's associated client. Cannot be used at the same time as client_scope_id.
func (o HardcodedClaimProtocolMapperOutput) ClientId() pulumi.StringPtrOutput {
return o.ApplyT(func(v *HardcodedClaimProtocolMapper) pulumi.StringPtrOutput { return v.ClientId }).(pulumi.StringPtrOutput)
}
// The mapper's associated client scope. Cannot be used at the same time as client_id.
func (o HardcodedClaimProtocolMapperOutput) ClientScopeId() pulumi.StringPtrOutput {
return o.ApplyT(func(v *HardcodedClaimProtocolMapper) pulumi.StringPtrOutput { return v.ClientScopeId }).(pulumi.StringPtrOutput)
}
// A human-friendly name that will appear in the Keycloak console.
func (o HardcodedClaimProtocolMapperOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v *HardcodedClaimProtocolMapper) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
}
// The realm id where the associated client or client scope exists.
func (o HardcodedClaimProtocolMapperOutput) RealmId() pulumi.StringOutput {
return o.ApplyT(func(v *HardcodedClaimProtocolMapper) pulumi.StringOutput { return v.RealmId }).(pulumi.StringOutput)
}
type HardcodedClaimProtocolMapperArrayOutput struct{ *pulumi.OutputState }
func (HardcodedClaimProtocolMapperArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*HardcodedClaimProtocolMapper)(nil)).Elem()
}
func (o HardcodedClaimProtocolMapperArrayOutput) ToHardcodedClaimProtocolMapperArrayOutput() HardcodedClaimProtocolMapperArrayOutput {
return o
}
func (o HardcodedClaimProtocolMapperArrayOutput) ToHardcodedClaimProtocolMapperArrayOutputWithContext(ctx context.Context) HardcodedClaimProtocolMapperArrayOutput {
return o
}
func (o HardcodedClaimProtocolMapperArrayOutput) Index(i pulumi.IntInput) HardcodedClaimProtocolMapperOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *HardcodedClaimProtocolMapper {
return vs[0].([]*HardcodedClaimProtocolMapper)[vs[1].(int)]
}).(HardcodedClaimProtocolMapperOutput)
}
type HardcodedClaimProtocolMapperMapOutput struct{ *pulumi.OutputState }
func (HardcodedClaimProtocolMapperMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*HardcodedClaimProtocolMapper)(nil)).Elem()
}
func (o HardcodedClaimProtocolMapperMapOutput) ToHardcodedClaimProtocolMapperMapOutput() HardcodedClaimProtocolMapperMapOutput {
return o
}
func (o HardcodedClaimProtocolMapperMapOutput) ToHardcodedClaimProtocolMapperMapOutputWithContext(ctx context.Context) HardcodedClaimProtocolMapperMapOutput {
return o
}
func (o HardcodedClaimProtocolMapperMapOutput) MapIndex(k pulumi.StringInput) HardcodedClaimProtocolMapperOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *HardcodedClaimProtocolMapper {
return vs[0].(map[string]*HardcodedClaimProtocolMapper)[vs[1].(string)]
}).(HardcodedClaimProtocolMapperOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*HardcodedClaimProtocolMapperInput)(nil)).Elem(), &HardcodedClaimProtocolMapper{})
pulumi.RegisterInputType(reflect.TypeOf((*HardcodedClaimProtocolMapperArrayInput)(nil)).Elem(), HardcodedClaimProtocolMapperArray{})
pulumi.RegisterInputType(reflect.TypeOf((*HardcodedClaimProtocolMapperMapInput)(nil)).Elem(), HardcodedClaimProtocolMapperMap{})
pulumi.RegisterOutputType(HardcodedClaimProtocolMapperOutput{})
pulumi.RegisterOutputType(HardcodedClaimProtocolMapperArrayOutput{})
pulumi.RegisterOutputType(HardcodedClaimProtocolMapperMapOutput{})
}