-
Notifications
You must be signed in to change notification settings - Fork 17
/
pulumiTypes.go
121 lines (93 loc) · 4.02 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
// Code generated by the Pulumi SDK Generator DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package internetmonitor
import (
"context"
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// The metadata that you apply to the cluster to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define.
type MonitorTag struct {
Key *string `pulumi:"key"`
Value *string `pulumi:"value"`
}
// MonitorTagInput is an input type that accepts MonitorTagArgs and MonitorTagOutput values.
// You can construct a concrete instance of `MonitorTagInput` via:
//
// MonitorTagArgs{...}
type MonitorTagInput interface {
pulumi.Input
ToMonitorTagOutput() MonitorTagOutput
ToMonitorTagOutputWithContext(context.Context) MonitorTagOutput
}
// The metadata that you apply to the cluster to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define.
type MonitorTagArgs struct {
Key pulumi.StringPtrInput `pulumi:"key"`
Value pulumi.StringPtrInput `pulumi:"value"`
}
func (MonitorTagArgs) ElementType() reflect.Type {
return reflect.TypeOf((*MonitorTag)(nil)).Elem()
}
func (i MonitorTagArgs) ToMonitorTagOutput() MonitorTagOutput {
return i.ToMonitorTagOutputWithContext(context.Background())
}
func (i MonitorTagArgs) ToMonitorTagOutputWithContext(ctx context.Context) MonitorTagOutput {
return pulumi.ToOutputWithContext(ctx, i).(MonitorTagOutput)
}
// MonitorTagArrayInput is an input type that accepts MonitorTagArray and MonitorTagArrayOutput values.
// You can construct a concrete instance of `MonitorTagArrayInput` via:
//
// MonitorTagArray{ MonitorTagArgs{...} }
type MonitorTagArrayInput interface {
pulumi.Input
ToMonitorTagArrayOutput() MonitorTagArrayOutput
ToMonitorTagArrayOutputWithContext(context.Context) MonitorTagArrayOutput
}
type MonitorTagArray []MonitorTagInput
func (MonitorTagArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]MonitorTag)(nil)).Elem()
}
func (i MonitorTagArray) ToMonitorTagArrayOutput() MonitorTagArrayOutput {
return i.ToMonitorTagArrayOutputWithContext(context.Background())
}
func (i MonitorTagArray) ToMonitorTagArrayOutputWithContext(ctx context.Context) MonitorTagArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(MonitorTagArrayOutput)
}
// The metadata that you apply to the cluster to help you categorize and organize them. Each tag consists of a key and an optional value, both of which you define.
type MonitorTagOutput struct{ *pulumi.OutputState }
func (MonitorTagOutput) ElementType() reflect.Type {
return reflect.TypeOf((*MonitorTag)(nil)).Elem()
}
func (o MonitorTagOutput) ToMonitorTagOutput() MonitorTagOutput {
return o
}
func (o MonitorTagOutput) ToMonitorTagOutputWithContext(ctx context.Context) MonitorTagOutput {
return o
}
func (o MonitorTagOutput) Key() pulumi.StringPtrOutput {
return o.ApplyT(func(v MonitorTag) *string { return v.Key }).(pulumi.StringPtrOutput)
}
func (o MonitorTagOutput) Value() pulumi.StringPtrOutput {
return o.ApplyT(func(v MonitorTag) *string { return v.Value }).(pulumi.StringPtrOutput)
}
type MonitorTagArrayOutput struct{ *pulumi.OutputState }
func (MonitorTagArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]MonitorTag)(nil)).Elem()
}
func (o MonitorTagArrayOutput) ToMonitorTagArrayOutput() MonitorTagArrayOutput {
return o
}
func (o MonitorTagArrayOutput) ToMonitorTagArrayOutputWithContext(ctx context.Context) MonitorTagArrayOutput {
return o
}
func (o MonitorTagArrayOutput) Index(i pulumi.IntInput) MonitorTagOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) MonitorTag {
return vs[0].([]MonitorTag)[vs[1].(int)]
}).(MonitorTagOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*MonitorTagInput)(nil)).Elem(), MonitorTagArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*MonitorTagArrayInput)(nil)).Elem(), MonitorTagArray{})
pulumi.RegisterOutputType(MonitorTagOutput{})
pulumi.RegisterOutputType(MonitorTagArrayOutput{})
}