/
pulumiEnums.go
192 lines (150 loc) · 5.73 KB
/
pulumiEnums.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
// *** 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 route53
import (
"context"
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
type RecordType string
const (
RecordTypeA = RecordType("A")
RecordTypeAAAA = RecordType("AAAA")
RecordTypeCNAME = RecordType("CNAME")
RecordTypeCAA = RecordType("CAA")
RecordTypeMX = RecordType("MX")
RecordTypeNAPTR = RecordType("NAPTR")
RecordTypeNS = RecordType("NS")
RecordTypePTR = RecordType("PTR")
RecordTypeSOA = RecordType("SOA")
RecordTypeSPF = RecordType("SPF")
RecordTypeSRV = RecordType("SRV")
RecordTypeTXT = RecordType("TXT")
)
func (RecordType) ElementType() reflect.Type {
return reflect.TypeOf((*RecordType)(nil)).Elem()
}
func (e RecordType) ToRecordTypeOutput() RecordTypeOutput {
return pulumi.ToOutput(e).(RecordTypeOutput)
}
func (e RecordType) ToRecordTypeOutputWithContext(ctx context.Context) RecordTypeOutput {
return pulumi.ToOutputWithContext(ctx, e).(RecordTypeOutput)
}
func (e RecordType) ToRecordTypePtrOutput() RecordTypePtrOutput {
return e.ToRecordTypePtrOutputWithContext(context.Background())
}
func (e RecordType) ToRecordTypePtrOutputWithContext(ctx context.Context) RecordTypePtrOutput {
return RecordType(e).ToRecordTypeOutputWithContext(ctx).ToRecordTypePtrOutputWithContext(ctx)
}
func (e RecordType) ToStringOutput() pulumi.StringOutput {
return pulumi.ToOutput(pulumi.String(e)).(pulumi.StringOutput)
}
func (e RecordType) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput {
return pulumi.ToOutputWithContext(ctx, pulumi.String(e)).(pulumi.StringOutput)
}
func (e RecordType) ToStringPtrOutput() pulumi.StringPtrOutput {
return pulumi.String(e).ToStringPtrOutputWithContext(context.Background())
}
func (e RecordType) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
return pulumi.String(e).ToStringOutputWithContext(ctx).ToStringPtrOutputWithContext(ctx)
}
type RecordTypeOutput struct{ *pulumi.OutputState }
func (RecordTypeOutput) ElementType() reflect.Type {
return reflect.TypeOf((*RecordType)(nil)).Elem()
}
func (o RecordTypeOutput) ToRecordTypeOutput() RecordTypeOutput {
return o
}
func (o RecordTypeOutput) ToRecordTypeOutputWithContext(ctx context.Context) RecordTypeOutput {
return o
}
func (o RecordTypeOutput) ToRecordTypePtrOutput() RecordTypePtrOutput {
return o.ToRecordTypePtrOutputWithContext(context.Background())
}
func (o RecordTypeOutput) ToRecordTypePtrOutputWithContext(ctx context.Context) RecordTypePtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v RecordType) *RecordType {
return &v
}).(RecordTypePtrOutput)
}
func (o RecordTypeOutput) ToStringOutput() pulumi.StringOutput {
return o.ToStringOutputWithContext(context.Background())
}
func (o RecordTypeOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, e RecordType) string {
return string(e)
}).(pulumi.StringOutput)
}
func (o RecordTypeOutput) ToStringPtrOutput() pulumi.StringPtrOutput {
return o.ToStringPtrOutputWithContext(context.Background())
}
func (o RecordTypeOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, e RecordType) *string {
v := string(e)
return &v
}).(pulumi.StringPtrOutput)
}
type RecordTypePtrOutput struct{ *pulumi.OutputState }
func (RecordTypePtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**RecordType)(nil)).Elem()
}
func (o RecordTypePtrOutput) ToRecordTypePtrOutput() RecordTypePtrOutput {
return o
}
func (o RecordTypePtrOutput) ToRecordTypePtrOutputWithContext(ctx context.Context) RecordTypePtrOutput {
return o
}
func (o RecordTypePtrOutput) Elem() RecordTypeOutput {
return o.ApplyT(func(v *RecordType) RecordType {
if v != nil {
return *v
}
var ret RecordType
return ret
}).(RecordTypeOutput)
}
func (o RecordTypePtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput {
return o.ToStringPtrOutputWithContext(context.Background())
}
func (o RecordTypePtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, e *RecordType) *string {
if e == nil {
return nil
}
v := string(*e)
return &v
}).(pulumi.StringPtrOutput)
}
// RecordTypeInput is an input type that accepts RecordTypeArgs and RecordTypeOutput values.
// You can construct a concrete instance of `RecordTypeInput` via:
//
// RecordTypeArgs{...}
type RecordTypeInput interface {
pulumi.Input
ToRecordTypeOutput() RecordTypeOutput
ToRecordTypeOutputWithContext(context.Context) RecordTypeOutput
}
var recordTypePtrType = reflect.TypeOf((**RecordType)(nil)).Elem()
type RecordTypePtrInput interface {
pulumi.Input
ToRecordTypePtrOutput() RecordTypePtrOutput
ToRecordTypePtrOutputWithContext(context.Context) RecordTypePtrOutput
}
type recordTypePtr string
func RecordTypePtr(v string) RecordTypePtrInput {
return (*recordTypePtr)(&v)
}
func (*recordTypePtr) ElementType() reflect.Type {
return recordTypePtrType
}
func (in *recordTypePtr) ToRecordTypePtrOutput() RecordTypePtrOutput {
return pulumi.ToOutput(in).(RecordTypePtrOutput)
}
func (in *recordTypePtr) ToRecordTypePtrOutputWithContext(ctx context.Context) RecordTypePtrOutput {
return pulumi.ToOutputWithContext(ctx, in).(RecordTypePtrOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*RecordTypeInput)(nil)).Elem(), RecordType("A"))
pulumi.RegisterInputType(reflect.TypeOf((*RecordTypePtrInput)(nil)).Elem(), RecordType("A"))
pulumi.RegisterOutputType(RecordTypeOutput{})
pulumi.RegisterOutputType(RecordTypePtrOutput{})
}