/
pulumiTypes.go
246 lines (192 loc) · 9.33 KB
/
pulumiTypes.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
// 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"
"github.com/pulumi/pulumi-vault/sdk/v6/go/vault/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
var _ = internal.GetEnvOrDefault
type AuthBackendGroupType struct {
// Name of the group within the Okta
GroupName string `pulumi:"groupName"`
// Vault policies to associate with this group
Policies []string `pulumi:"policies"`
}
// AuthBackendGroupTypeInput is an input type that accepts AuthBackendGroupTypeArgs and AuthBackendGroupTypeOutput values.
// You can construct a concrete instance of `AuthBackendGroupTypeInput` via:
//
// AuthBackendGroupTypeArgs{...}
type AuthBackendGroupTypeInput interface {
pulumi.Input
ToAuthBackendGroupTypeOutput() AuthBackendGroupTypeOutput
ToAuthBackendGroupTypeOutputWithContext(context.Context) AuthBackendGroupTypeOutput
}
type AuthBackendGroupTypeArgs struct {
// Name of the group within the Okta
GroupName pulumi.StringInput `pulumi:"groupName"`
// Vault policies to associate with this group
Policies pulumi.StringArrayInput `pulumi:"policies"`
}
func (AuthBackendGroupTypeArgs) ElementType() reflect.Type {
return reflect.TypeOf((*AuthBackendGroupType)(nil)).Elem()
}
func (i AuthBackendGroupTypeArgs) ToAuthBackendGroupTypeOutput() AuthBackendGroupTypeOutput {
return i.ToAuthBackendGroupTypeOutputWithContext(context.Background())
}
func (i AuthBackendGroupTypeArgs) ToAuthBackendGroupTypeOutputWithContext(ctx context.Context) AuthBackendGroupTypeOutput {
return pulumi.ToOutputWithContext(ctx, i).(AuthBackendGroupTypeOutput)
}
// AuthBackendGroupTypeArrayInput is an input type that accepts AuthBackendGroupTypeArray and AuthBackendGroupTypeArrayOutput values.
// You can construct a concrete instance of `AuthBackendGroupTypeArrayInput` via:
//
// AuthBackendGroupTypeArray{ AuthBackendGroupTypeArgs{...} }
type AuthBackendGroupTypeArrayInput interface {
pulumi.Input
ToAuthBackendGroupTypeArrayOutput() AuthBackendGroupTypeArrayOutput
ToAuthBackendGroupTypeArrayOutputWithContext(context.Context) AuthBackendGroupTypeArrayOutput
}
type AuthBackendGroupTypeArray []AuthBackendGroupTypeInput
func (AuthBackendGroupTypeArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]AuthBackendGroupType)(nil)).Elem()
}
func (i AuthBackendGroupTypeArray) ToAuthBackendGroupTypeArrayOutput() AuthBackendGroupTypeArrayOutput {
return i.ToAuthBackendGroupTypeArrayOutputWithContext(context.Background())
}
func (i AuthBackendGroupTypeArray) ToAuthBackendGroupTypeArrayOutputWithContext(ctx context.Context) AuthBackendGroupTypeArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(AuthBackendGroupTypeArrayOutput)
}
type AuthBackendGroupTypeOutput struct{ *pulumi.OutputState }
func (AuthBackendGroupTypeOutput) ElementType() reflect.Type {
return reflect.TypeOf((*AuthBackendGroupType)(nil)).Elem()
}
func (o AuthBackendGroupTypeOutput) ToAuthBackendGroupTypeOutput() AuthBackendGroupTypeOutput {
return o
}
func (o AuthBackendGroupTypeOutput) ToAuthBackendGroupTypeOutputWithContext(ctx context.Context) AuthBackendGroupTypeOutput {
return o
}
// Name of the group within the Okta
func (o AuthBackendGroupTypeOutput) GroupName() pulumi.StringOutput {
return o.ApplyT(func(v AuthBackendGroupType) string { return v.GroupName }).(pulumi.StringOutput)
}
// Vault policies to associate with this group
func (o AuthBackendGroupTypeOutput) Policies() pulumi.StringArrayOutput {
return o.ApplyT(func(v AuthBackendGroupType) []string { return v.Policies }).(pulumi.StringArrayOutput)
}
type AuthBackendGroupTypeArrayOutput struct{ *pulumi.OutputState }
func (AuthBackendGroupTypeArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]AuthBackendGroupType)(nil)).Elem()
}
func (o AuthBackendGroupTypeArrayOutput) ToAuthBackendGroupTypeArrayOutput() AuthBackendGroupTypeArrayOutput {
return o
}
func (o AuthBackendGroupTypeArrayOutput) ToAuthBackendGroupTypeArrayOutputWithContext(ctx context.Context) AuthBackendGroupTypeArrayOutput {
return o
}
func (o AuthBackendGroupTypeArrayOutput) Index(i pulumi.IntInput) AuthBackendGroupTypeOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) AuthBackendGroupType {
return vs[0].([]AuthBackendGroupType)[vs[1].(int)]
}).(AuthBackendGroupTypeOutput)
}
type AuthBackendUserType struct {
// List of Okta groups to associate with this user
Groups []string `pulumi:"groups"`
// Vault policies to associate with this group
Policies []string `pulumi:"policies"`
// Name of the user within Okta
Username string `pulumi:"username"`
}
// AuthBackendUserTypeInput is an input type that accepts AuthBackendUserTypeArgs and AuthBackendUserTypeOutput values.
// You can construct a concrete instance of `AuthBackendUserTypeInput` via:
//
// AuthBackendUserTypeArgs{...}
type AuthBackendUserTypeInput interface {
pulumi.Input
ToAuthBackendUserTypeOutput() AuthBackendUserTypeOutput
ToAuthBackendUserTypeOutputWithContext(context.Context) AuthBackendUserTypeOutput
}
type AuthBackendUserTypeArgs struct {
// List of Okta groups to associate with this user
Groups pulumi.StringArrayInput `pulumi:"groups"`
// Vault policies to associate with this group
Policies pulumi.StringArrayInput `pulumi:"policies"`
// Name of the user within Okta
Username pulumi.StringInput `pulumi:"username"`
}
func (AuthBackendUserTypeArgs) ElementType() reflect.Type {
return reflect.TypeOf((*AuthBackendUserType)(nil)).Elem()
}
func (i AuthBackendUserTypeArgs) ToAuthBackendUserTypeOutput() AuthBackendUserTypeOutput {
return i.ToAuthBackendUserTypeOutputWithContext(context.Background())
}
func (i AuthBackendUserTypeArgs) ToAuthBackendUserTypeOutputWithContext(ctx context.Context) AuthBackendUserTypeOutput {
return pulumi.ToOutputWithContext(ctx, i).(AuthBackendUserTypeOutput)
}
// AuthBackendUserTypeArrayInput is an input type that accepts AuthBackendUserTypeArray and AuthBackendUserTypeArrayOutput values.
// You can construct a concrete instance of `AuthBackendUserTypeArrayInput` via:
//
// AuthBackendUserTypeArray{ AuthBackendUserTypeArgs{...} }
type AuthBackendUserTypeArrayInput interface {
pulumi.Input
ToAuthBackendUserTypeArrayOutput() AuthBackendUserTypeArrayOutput
ToAuthBackendUserTypeArrayOutputWithContext(context.Context) AuthBackendUserTypeArrayOutput
}
type AuthBackendUserTypeArray []AuthBackendUserTypeInput
func (AuthBackendUserTypeArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]AuthBackendUserType)(nil)).Elem()
}
func (i AuthBackendUserTypeArray) ToAuthBackendUserTypeArrayOutput() AuthBackendUserTypeArrayOutput {
return i.ToAuthBackendUserTypeArrayOutputWithContext(context.Background())
}
func (i AuthBackendUserTypeArray) ToAuthBackendUserTypeArrayOutputWithContext(ctx context.Context) AuthBackendUserTypeArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(AuthBackendUserTypeArrayOutput)
}
type AuthBackendUserTypeOutput struct{ *pulumi.OutputState }
func (AuthBackendUserTypeOutput) ElementType() reflect.Type {
return reflect.TypeOf((*AuthBackendUserType)(nil)).Elem()
}
func (o AuthBackendUserTypeOutput) ToAuthBackendUserTypeOutput() AuthBackendUserTypeOutput {
return o
}
func (o AuthBackendUserTypeOutput) ToAuthBackendUserTypeOutputWithContext(ctx context.Context) AuthBackendUserTypeOutput {
return o
}
// List of Okta groups to associate with this user
func (o AuthBackendUserTypeOutput) Groups() pulumi.StringArrayOutput {
return o.ApplyT(func(v AuthBackendUserType) []string { return v.Groups }).(pulumi.StringArrayOutput)
}
// Vault policies to associate with this group
func (o AuthBackendUserTypeOutput) Policies() pulumi.StringArrayOutput {
return o.ApplyT(func(v AuthBackendUserType) []string { return v.Policies }).(pulumi.StringArrayOutput)
}
// Name of the user within Okta
func (o AuthBackendUserTypeOutput) Username() pulumi.StringOutput {
return o.ApplyT(func(v AuthBackendUserType) string { return v.Username }).(pulumi.StringOutput)
}
type AuthBackendUserTypeArrayOutput struct{ *pulumi.OutputState }
func (AuthBackendUserTypeArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]AuthBackendUserType)(nil)).Elem()
}
func (o AuthBackendUserTypeArrayOutput) ToAuthBackendUserTypeArrayOutput() AuthBackendUserTypeArrayOutput {
return o
}
func (o AuthBackendUserTypeArrayOutput) ToAuthBackendUserTypeArrayOutputWithContext(ctx context.Context) AuthBackendUserTypeArrayOutput {
return o
}
func (o AuthBackendUserTypeArrayOutput) Index(i pulumi.IntInput) AuthBackendUserTypeOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) AuthBackendUserType {
return vs[0].([]AuthBackendUserType)[vs[1].(int)]
}).(AuthBackendUserTypeOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*AuthBackendGroupTypeInput)(nil)).Elem(), AuthBackendGroupTypeArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*AuthBackendGroupTypeArrayInput)(nil)).Elem(), AuthBackendGroupTypeArray{})
pulumi.RegisterInputType(reflect.TypeOf((*AuthBackendUserTypeInput)(nil)).Elem(), AuthBackendUserTypeArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*AuthBackendUserTypeArrayInput)(nil)).Elem(), AuthBackendUserTypeArray{})
pulumi.RegisterOutputType(AuthBackendGroupTypeOutput{})
pulumi.RegisterOutputType(AuthBackendGroupTypeArrayOutput{})
pulumi.RegisterOutputType(AuthBackendUserTypeOutput{})
pulumi.RegisterOutputType(AuthBackendUserTypeArrayOutput{})
}