/
pulumiTypes.go
185 lines (148 loc) · 6.69 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
// *** 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 loganalytics
import (
"context"
"reflect"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
type ClusterIdentity struct {
// The Principal ID for the Service Principal associated with the Identity of this Log Analytics Cluster.
PrincipalId *string `pulumi:"principalId"`
// The Tenant ID for the Service Principal associated with the Identity of this Log Analytics Cluster.
TenantId *string `pulumi:"tenantId"`
// Specifies the identity type of the Log Analytics Cluster. At this time the only allowed value is `SystemAssigned`.
Type string `pulumi:"type"`
}
// ClusterIdentityInput is an input type that accepts ClusterIdentityArgs and ClusterIdentityOutput values.
// You can construct a concrete instance of `ClusterIdentityInput` via:
//
// ClusterIdentityArgs{...}
type ClusterIdentityInput interface {
pulumi.Input
ToClusterIdentityOutput() ClusterIdentityOutput
ToClusterIdentityOutputWithContext(context.Context) ClusterIdentityOutput
}
type ClusterIdentityArgs struct {
// The Principal ID for the Service Principal associated with the Identity of this Log Analytics Cluster.
PrincipalId pulumi.StringPtrInput `pulumi:"principalId"`
// The Tenant ID for the Service Principal associated with the Identity of this Log Analytics Cluster.
TenantId pulumi.StringPtrInput `pulumi:"tenantId"`
// Specifies the identity type of the Log Analytics Cluster. At this time the only allowed value is `SystemAssigned`.
Type pulumi.StringInput `pulumi:"type"`
}
func (ClusterIdentityArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ClusterIdentity)(nil)).Elem()
}
func (i ClusterIdentityArgs) ToClusterIdentityOutput() ClusterIdentityOutput {
return i.ToClusterIdentityOutputWithContext(context.Background())
}
func (i ClusterIdentityArgs) ToClusterIdentityOutputWithContext(ctx context.Context) ClusterIdentityOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterIdentityOutput)
}
func (i ClusterIdentityArgs) ToClusterIdentityPtrOutput() ClusterIdentityPtrOutput {
return i.ToClusterIdentityPtrOutputWithContext(context.Background())
}
func (i ClusterIdentityArgs) ToClusterIdentityPtrOutputWithContext(ctx context.Context) ClusterIdentityPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterIdentityOutput).ToClusterIdentityPtrOutputWithContext(ctx)
}
// ClusterIdentityPtrInput is an input type that accepts ClusterIdentityArgs, ClusterIdentityPtr and ClusterIdentityPtrOutput values.
// You can construct a concrete instance of `ClusterIdentityPtrInput` via:
//
// ClusterIdentityArgs{...}
//
// or:
//
// nil
type ClusterIdentityPtrInput interface {
pulumi.Input
ToClusterIdentityPtrOutput() ClusterIdentityPtrOutput
ToClusterIdentityPtrOutputWithContext(context.Context) ClusterIdentityPtrOutput
}
type clusterIdentityPtrType ClusterIdentityArgs
func ClusterIdentityPtr(v *ClusterIdentityArgs) ClusterIdentityPtrInput {
return (*clusterIdentityPtrType)(v)
}
func (*clusterIdentityPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**ClusterIdentity)(nil)).Elem()
}
func (i *clusterIdentityPtrType) ToClusterIdentityPtrOutput() ClusterIdentityPtrOutput {
return i.ToClusterIdentityPtrOutputWithContext(context.Background())
}
func (i *clusterIdentityPtrType) ToClusterIdentityPtrOutputWithContext(ctx context.Context) ClusterIdentityPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterIdentityPtrOutput)
}
type ClusterIdentityOutput struct{ *pulumi.OutputState }
func (ClusterIdentityOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ClusterIdentity)(nil)).Elem()
}
func (o ClusterIdentityOutput) ToClusterIdentityOutput() ClusterIdentityOutput {
return o
}
func (o ClusterIdentityOutput) ToClusterIdentityOutputWithContext(ctx context.Context) ClusterIdentityOutput {
return o
}
func (o ClusterIdentityOutput) ToClusterIdentityPtrOutput() ClusterIdentityPtrOutput {
return o.ToClusterIdentityPtrOutputWithContext(context.Background())
}
func (o ClusterIdentityOutput) ToClusterIdentityPtrOutputWithContext(ctx context.Context) ClusterIdentityPtrOutput {
return o.ApplyT(func(v ClusterIdentity) *ClusterIdentity {
return &v
}).(ClusterIdentityPtrOutput)
}
// The Principal ID for the Service Principal associated with the Identity of this Log Analytics Cluster.
func (o ClusterIdentityOutput) PrincipalId() pulumi.StringPtrOutput {
return o.ApplyT(func(v ClusterIdentity) *string { return v.PrincipalId }).(pulumi.StringPtrOutput)
}
// The Tenant ID for the Service Principal associated with the Identity of this Log Analytics Cluster.
func (o ClusterIdentityOutput) TenantId() pulumi.StringPtrOutput {
return o.ApplyT(func(v ClusterIdentity) *string { return v.TenantId }).(pulumi.StringPtrOutput)
}
// Specifies the identity type of the Log Analytics Cluster. At this time the only allowed value is `SystemAssigned`.
func (o ClusterIdentityOutput) Type() pulumi.StringOutput {
return o.ApplyT(func(v ClusterIdentity) string { return v.Type }).(pulumi.StringOutput)
}
type ClusterIdentityPtrOutput struct{ *pulumi.OutputState }
func (ClusterIdentityPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**ClusterIdentity)(nil)).Elem()
}
func (o ClusterIdentityPtrOutput) ToClusterIdentityPtrOutput() ClusterIdentityPtrOutput {
return o
}
func (o ClusterIdentityPtrOutput) ToClusterIdentityPtrOutputWithContext(ctx context.Context) ClusterIdentityPtrOutput {
return o
}
func (o ClusterIdentityPtrOutput) Elem() ClusterIdentityOutput {
return o.ApplyT(func(v *ClusterIdentity) ClusterIdentity { return *v }).(ClusterIdentityOutput)
}
// The Principal ID for the Service Principal associated with the Identity of this Log Analytics Cluster.
func (o ClusterIdentityPtrOutput) PrincipalId() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ClusterIdentity) *string {
if v == nil {
return nil
}
return v.PrincipalId
}).(pulumi.StringPtrOutput)
}
// The Tenant ID for the Service Principal associated with the Identity of this Log Analytics Cluster.
func (o ClusterIdentityPtrOutput) TenantId() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ClusterIdentity) *string {
if v == nil {
return nil
}
return v.TenantId
}).(pulumi.StringPtrOutput)
}
// Specifies the identity type of the Log Analytics Cluster. At this time the only allowed value is `SystemAssigned`.
func (o ClusterIdentityPtrOutput) Type() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ClusterIdentity) *string {
if v == nil {
return nil
}
return &v.Type
}).(pulumi.StringPtrOutput)
}
func init() {
pulumi.RegisterOutputType(ClusterIdentityOutput{})
pulumi.RegisterOutputType(ClusterIdentityPtrOutput{})
}