/
hardcodedAttributeIdentityProviderMapper.go
138 lines (125 loc) · 5.06 KB
/
hardcodedAttributeIdentityProviderMapper.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
// *** 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 keycloak
import (
"reflect"
"github.com/pkg/errors"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
type HardcodedAttributeIdentityProviderMapper struct {
pulumi.CustomResourceState
// OIDC Claim
AttributeName pulumi.StringPtrOutput `pulumi:"attributeName"`
// User Attribute
AttributeValue pulumi.StringPtrOutput `pulumi:"attributeValue"`
ExtraConfig pulumi.MapOutput `pulumi:"extraConfig"`
// IDP Alias
IdentityProviderAlias pulumi.StringOutput `pulumi:"identityProviderAlias"`
// IDP Mapper Name
Name pulumi.StringOutput `pulumi:"name"`
// Realm Name
Realm pulumi.StringOutput `pulumi:"realm"`
// Is Attribute Related To a User Session
UserSession pulumi.BoolOutput `pulumi:"userSession"`
}
// NewHardcodedAttributeIdentityProviderMapper registers a new resource with the given unique name, arguments, and options.
func NewHardcodedAttributeIdentityProviderMapper(ctx *pulumi.Context,
name string, args *HardcodedAttributeIdentityProviderMapperArgs, opts ...pulumi.ResourceOption) (*HardcodedAttributeIdentityProviderMapper, error) {
if args == nil || args.IdentityProviderAlias == nil {
return nil, errors.New("missing required argument 'IdentityProviderAlias'")
}
if args == nil || args.Realm == nil {
return nil, errors.New("missing required argument 'Realm'")
}
if args == nil || args.UserSession == nil {
return nil, errors.New("missing required argument 'UserSession'")
}
if args == nil {
args = &HardcodedAttributeIdentityProviderMapperArgs{}
}
var resource HardcodedAttributeIdentityProviderMapper
err := ctx.RegisterResource("keycloak:index/hardcodedAttributeIdentityProviderMapper:HardcodedAttributeIdentityProviderMapper", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetHardcodedAttributeIdentityProviderMapper gets an existing HardcodedAttributeIdentityProviderMapper 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 GetHardcodedAttributeIdentityProviderMapper(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *HardcodedAttributeIdentityProviderMapperState, opts ...pulumi.ResourceOption) (*HardcodedAttributeIdentityProviderMapper, error) {
var resource HardcodedAttributeIdentityProviderMapper
err := ctx.ReadResource("keycloak:index/hardcodedAttributeIdentityProviderMapper:HardcodedAttributeIdentityProviderMapper", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering HardcodedAttributeIdentityProviderMapper resources.
type hardcodedAttributeIdentityProviderMapperState struct {
// OIDC Claim
AttributeName *string `pulumi:"attributeName"`
// User Attribute
AttributeValue *string `pulumi:"attributeValue"`
ExtraConfig map[string]interface{} `pulumi:"extraConfig"`
// IDP Alias
IdentityProviderAlias *string `pulumi:"identityProviderAlias"`
// IDP Mapper Name
Name *string `pulumi:"name"`
// Realm Name
Realm *string `pulumi:"realm"`
// Is Attribute Related To a User Session
UserSession *bool `pulumi:"userSession"`
}
type HardcodedAttributeIdentityProviderMapperState struct {
// OIDC Claim
AttributeName pulumi.StringPtrInput
// User Attribute
AttributeValue pulumi.StringPtrInput
ExtraConfig pulumi.MapInput
// IDP Alias
IdentityProviderAlias pulumi.StringPtrInput
// IDP Mapper Name
Name pulumi.StringPtrInput
// Realm Name
Realm pulumi.StringPtrInput
// Is Attribute Related To a User Session
UserSession pulumi.BoolPtrInput
}
func (HardcodedAttributeIdentityProviderMapperState) ElementType() reflect.Type {
return reflect.TypeOf((*hardcodedAttributeIdentityProviderMapperState)(nil)).Elem()
}
type hardcodedAttributeIdentityProviderMapperArgs struct {
// OIDC Claim
AttributeName *string `pulumi:"attributeName"`
// User Attribute
AttributeValue *string `pulumi:"attributeValue"`
ExtraConfig map[string]interface{} `pulumi:"extraConfig"`
// IDP Alias
IdentityProviderAlias string `pulumi:"identityProviderAlias"`
// IDP Mapper Name
Name *string `pulumi:"name"`
// Realm Name
Realm string `pulumi:"realm"`
// Is Attribute Related To a User Session
UserSession bool `pulumi:"userSession"`
}
// The set of arguments for constructing a HardcodedAttributeIdentityProviderMapper resource.
type HardcodedAttributeIdentityProviderMapperArgs struct {
// OIDC Claim
AttributeName pulumi.StringPtrInput
// User Attribute
AttributeValue pulumi.StringPtrInput
ExtraConfig pulumi.MapInput
// IDP Alias
IdentityProviderAlias pulumi.StringInput
// IDP Mapper Name
Name pulumi.StringPtrInput
// Realm Name
Realm pulumi.StringInput
// Is Attribute Related To a User Session
UserSession pulumi.BoolInput
}
func (HardcodedAttributeIdentityProviderMapperArgs) ElementType() reflect.Type {
return reflect.TypeOf((*hardcodedAttributeIdentityProviderMapperArgs)(nil)).Elem()
}