/
pulumiTypes.go
223 lines (183 loc) · 8.52 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
// 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 digitaltwins
import (
"context"
"reflect"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
var _ = internal.GetEnvOrDefault
type InstanceIdentity struct {
// A list of User Assigned Managed Identity IDs to be assigned to this Digital Twins instance.
//
// > **NOTE:** This is required when `type` is set to `UserAssigned` or `SystemAssigned, UserAssigned`.
IdentityIds []string `pulumi:"identityIds"`
// The Principal ID associated with this Managed Service Identity.
PrincipalId *string `pulumi:"principalId"`
// The Tenant ID associated with this Managed Service Identity.
TenantId *string `pulumi:"tenantId"`
// Specifies the type of Managed Service Identity that should be configured on this Digital Twins instance. Possible values are `SystemAssigned`, `UserAssigned`, `SystemAssigned, UserAssigned` (to enable both).
Type string `pulumi:"type"`
}
// InstanceIdentityInput is an input type that accepts InstanceIdentityArgs and InstanceIdentityOutput values.
// You can construct a concrete instance of `InstanceIdentityInput` via:
//
// InstanceIdentityArgs{...}
type InstanceIdentityInput interface {
pulumi.Input
ToInstanceIdentityOutput() InstanceIdentityOutput
ToInstanceIdentityOutputWithContext(context.Context) InstanceIdentityOutput
}
type InstanceIdentityArgs struct {
// A list of User Assigned Managed Identity IDs to be assigned to this Digital Twins instance.
//
// > **NOTE:** This is required when `type` is set to `UserAssigned` or `SystemAssigned, UserAssigned`.
IdentityIds pulumi.StringArrayInput `pulumi:"identityIds"`
// The Principal ID associated with this Managed Service Identity.
PrincipalId pulumi.StringPtrInput `pulumi:"principalId"`
// The Tenant ID associated with this Managed Service Identity.
TenantId pulumi.StringPtrInput `pulumi:"tenantId"`
// Specifies the type of Managed Service Identity that should be configured on this Digital Twins instance. Possible values are `SystemAssigned`, `UserAssigned`, `SystemAssigned, UserAssigned` (to enable both).
Type pulumi.StringInput `pulumi:"type"`
}
func (InstanceIdentityArgs) ElementType() reflect.Type {
return reflect.TypeOf((*InstanceIdentity)(nil)).Elem()
}
func (i InstanceIdentityArgs) ToInstanceIdentityOutput() InstanceIdentityOutput {
return i.ToInstanceIdentityOutputWithContext(context.Background())
}
func (i InstanceIdentityArgs) ToInstanceIdentityOutputWithContext(ctx context.Context) InstanceIdentityOutput {
return pulumi.ToOutputWithContext(ctx, i).(InstanceIdentityOutput)
}
func (i InstanceIdentityArgs) ToInstanceIdentityPtrOutput() InstanceIdentityPtrOutput {
return i.ToInstanceIdentityPtrOutputWithContext(context.Background())
}
func (i InstanceIdentityArgs) ToInstanceIdentityPtrOutputWithContext(ctx context.Context) InstanceIdentityPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(InstanceIdentityOutput).ToInstanceIdentityPtrOutputWithContext(ctx)
}
// InstanceIdentityPtrInput is an input type that accepts InstanceIdentityArgs, InstanceIdentityPtr and InstanceIdentityPtrOutput values.
// You can construct a concrete instance of `InstanceIdentityPtrInput` via:
//
// InstanceIdentityArgs{...}
//
// or:
//
// nil
type InstanceIdentityPtrInput interface {
pulumi.Input
ToInstanceIdentityPtrOutput() InstanceIdentityPtrOutput
ToInstanceIdentityPtrOutputWithContext(context.Context) InstanceIdentityPtrOutput
}
type instanceIdentityPtrType InstanceIdentityArgs
func InstanceIdentityPtr(v *InstanceIdentityArgs) InstanceIdentityPtrInput {
return (*instanceIdentityPtrType)(v)
}
func (*instanceIdentityPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**InstanceIdentity)(nil)).Elem()
}
func (i *instanceIdentityPtrType) ToInstanceIdentityPtrOutput() InstanceIdentityPtrOutput {
return i.ToInstanceIdentityPtrOutputWithContext(context.Background())
}
func (i *instanceIdentityPtrType) ToInstanceIdentityPtrOutputWithContext(ctx context.Context) InstanceIdentityPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(InstanceIdentityPtrOutput)
}
type InstanceIdentityOutput struct{ *pulumi.OutputState }
func (InstanceIdentityOutput) ElementType() reflect.Type {
return reflect.TypeOf((*InstanceIdentity)(nil)).Elem()
}
func (o InstanceIdentityOutput) ToInstanceIdentityOutput() InstanceIdentityOutput {
return o
}
func (o InstanceIdentityOutput) ToInstanceIdentityOutputWithContext(ctx context.Context) InstanceIdentityOutput {
return o
}
func (o InstanceIdentityOutput) ToInstanceIdentityPtrOutput() InstanceIdentityPtrOutput {
return o.ToInstanceIdentityPtrOutputWithContext(context.Background())
}
func (o InstanceIdentityOutput) ToInstanceIdentityPtrOutputWithContext(ctx context.Context) InstanceIdentityPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v InstanceIdentity) *InstanceIdentity {
return &v
}).(InstanceIdentityPtrOutput)
}
// A list of User Assigned Managed Identity IDs to be assigned to this Digital Twins instance.
//
// > **NOTE:** This is required when `type` is set to `UserAssigned` or `SystemAssigned, UserAssigned`.
func (o InstanceIdentityOutput) IdentityIds() pulumi.StringArrayOutput {
return o.ApplyT(func(v InstanceIdentity) []string { return v.IdentityIds }).(pulumi.StringArrayOutput)
}
// The Principal ID associated with this Managed Service Identity.
func (o InstanceIdentityOutput) PrincipalId() pulumi.StringPtrOutput {
return o.ApplyT(func(v InstanceIdentity) *string { return v.PrincipalId }).(pulumi.StringPtrOutput)
}
// The Tenant ID associated with this Managed Service Identity.
func (o InstanceIdentityOutput) TenantId() pulumi.StringPtrOutput {
return o.ApplyT(func(v InstanceIdentity) *string { return v.TenantId }).(pulumi.StringPtrOutput)
}
// Specifies the type of Managed Service Identity that should be configured on this Digital Twins instance. Possible values are `SystemAssigned`, `UserAssigned`, `SystemAssigned, UserAssigned` (to enable both).
func (o InstanceIdentityOutput) Type() pulumi.StringOutput {
return o.ApplyT(func(v InstanceIdentity) string { return v.Type }).(pulumi.StringOutput)
}
type InstanceIdentityPtrOutput struct{ *pulumi.OutputState }
func (InstanceIdentityPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**InstanceIdentity)(nil)).Elem()
}
func (o InstanceIdentityPtrOutput) ToInstanceIdentityPtrOutput() InstanceIdentityPtrOutput {
return o
}
func (o InstanceIdentityPtrOutput) ToInstanceIdentityPtrOutputWithContext(ctx context.Context) InstanceIdentityPtrOutput {
return o
}
func (o InstanceIdentityPtrOutput) Elem() InstanceIdentityOutput {
return o.ApplyT(func(v *InstanceIdentity) InstanceIdentity {
if v != nil {
return *v
}
var ret InstanceIdentity
return ret
}).(InstanceIdentityOutput)
}
// A list of User Assigned Managed Identity IDs to be assigned to this Digital Twins instance.
//
// > **NOTE:** This is required when `type` is set to `UserAssigned` or `SystemAssigned, UserAssigned`.
func (o InstanceIdentityPtrOutput) IdentityIds() pulumi.StringArrayOutput {
return o.ApplyT(func(v *InstanceIdentity) []string {
if v == nil {
return nil
}
return v.IdentityIds
}).(pulumi.StringArrayOutput)
}
// The Principal ID associated with this Managed Service Identity.
func (o InstanceIdentityPtrOutput) PrincipalId() pulumi.StringPtrOutput {
return o.ApplyT(func(v *InstanceIdentity) *string {
if v == nil {
return nil
}
return v.PrincipalId
}).(pulumi.StringPtrOutput)
}
// The Tenant ID associated with this Managed Service Identity.
func (o InstanceIdentityPtrOutput) TenantId() pulumi.StringPtrOutput {
return o.ApplyT(func(v *InstanceIdentity) *string {
if v == nil {
return nil
}
return v.TenantId
}).(pulumi.StringPtrOutput)
}
// Specifies the type of Managed Service Identity that should be configured on this Digital Twins instance. Possible values are `SystemAssigned`, `UserAssigned`, `SystemAssigned, UserAssigned` (to enable both).
func (o InstanceIdentityPtrOutput) Type() pulumi.StringPtrOutput {
return o.ApplyT(func(v *InstanceIdentity) *string {
if v == nil {
return nil
}
return &v.Type
}).(pulumi.StringPtrOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*InstanceIdentityInput)(nil)).Elem(), InstanceIdentityArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*InstanceIdentityPtrInput)(nil)).Elem(), InstanceIdentityArgs{})
pulumi.RegisterOutputType(InstanceIdentityOutput{})
pulumi.RegisterOutputType(InstanceIdentityPtrOutput{})
}