-
Notifications
You must be signed in to change notification settings - Fork 151
/
pulumiEnums.go
183 lines (141 loc) · 5.78 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
// *** 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 ssm
import (
"context"
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
type ParameterType string
const (
ParameterTypeString = ParameterType("String")
ParameterTypeStringList = ParameterType("StringList")
ParameterTypeSecureString = ParameterType("SecureString")
)
func (ParameterType) ElementType() reflect.Type {
return reflect.TypeOf((*ParameterType)(nil)).Elem()
}
func (e ParameterType) ToParameterTypeOutput() ParameterTypeOutput {
return pulumi.ToOutput(e).(ParameterTypeOutput)
}
func (e ParameterType) ToParameterTypeOutputWithContext(ctx context.Context) ParameterTypeOutput {
return pulumi.ToOutputWithContext(ctx, e).(ParameterTypeOutput)
}
func (e ParameterType) ToParameterTypePtrOutput() ParameterTypePtrOutput {
return e.ToParameterTypePtrOutputWithContext(context.Background())
}
func (e ParameterType) ToParameterTypePtrOutputWithContext(ctx context.Context) ParameterTypePtrOutput {
return ParameterType(e).ToParameterTypeOutputWithContext(ctx).ToParameterTypePtrOutputWithContext(ctx)
}
func (e ParameterType) ToStringOutput() pulumi.StringOutput {
return pulumi.ToOutput(pulumi.String(e)).(pulumi.StringOutput)
}
func (e ParameterType) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput {
return pulumi.ToOutputWithContext(ctx, pulumi.String(e)).(pulumi.StringOutput)
}
func (e ParameterType) ToStringPtrOutput() pulumi.StringPtrOutput {
return pulumi.String(e).ToStringPtrOutputWithContext(context.Background())
}
func (e ParameterType) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
return pulumi.String(e).ToStringOutputWithContext(ctx).ToStringPtrOutputWithContext(ctx)
}
type ParameterTypeOutput struct{ *pulumi.OutputState }
func (ParameterTypeOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ParameterType)(nil)).Elem()
}
func (o ParameterTypeOutput) ToParameterTypeOutput() ParameterTypeOutput {
return o
}
func (o ParameterTypeOutput) ToParameterTypeOutputWithContext(ctx context.Context) ParameterTypeOutput {
return o
}
func (o ParameterTypeOutput) ToParameterTypePtrOutput() ParameterTypePtrOutput {
return o.ToParameterTypePtrOutputWithContext(context.Background())
}
func (o ParameterTypeOutput) ToParameterTypePtrOutputWithContext(ctx context.Context) ParameterTypePtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v ParameterType) *ParameterType {
return &v
}).(ParameterTypePtrOutput)
}
func (o ParameterTypeOutput) ToStringOutput() pulumi.StringOutput {
return o.ToStringOutputWithContext(context.Background())
}
func (o ParameterTypeOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, e ParameterType) string {
return string(e)
}).(pulumi.StringOutput)
}
func (o ParameterTypeOutput) ToStringPtrOutput() pulumi.StringPtrOutput {
return o.ToStringPtrOutputWithContext(context.Background())
}
func (o ParameterTypeOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, e ParameterType) *string {
v := string(e)
return &v
}).(pulumi.StringPtrOutput)
}
type ParameterTypePtrOutput struct{ *pulumi.OutputState }
func (ParameterTypePtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**ParameterType)(nil)).Elem()
}
func (o ParameterTypePtrOutput) ToParameterTypePtrOutput() ParameterTypePtrOutput {
return o
}
func (o ParameterTypePtrOutput) ToParameterTypePtrOutputWithContext(ctx context.Context) ParameterTypePtrOutput {
return o
}
func (o ParameterTypePtrOutput) Elem() ParameterTypeOutput {
return o.ApplyT(func(v *ParameterType) ParameterType {
if v != nil {
return *v
}
var ret ParameterType
return ret
}).(ParameterTypeOutput)
}
func (o ParameterTypePtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput {
return o.ToStringPtrOutputWithContext(context.Background())
}
func (o ParameterTypePtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, e *ParameterType) *string {
if e == nil {
return nil
}
v := string(*e)
return &v
}).(pulumi.StringPtrOutput)
}
// ParameterTypeInput is an input type that accepts ParameterTypeArgs and ParameterTypeOutput values.
// You can construct a concrete instance of `ParameterTypeInput` via:
//
// ParameterTypeArgs{...}
type ParameterTypeInput interface {
pulumi.Input
ToParameterTypeOutput() ParameterTypeOutput
ToParameterTypeOutputWithContext(context.Context) ParameterTypeOutput
}
var parameterTypePtrType = reflect.TypeOf((**ParameterType)(nil)).Elem()
type ParameterTypePtrInput interface {
pulumi.Input
ToParameterTypePtrOutput() ParameterTypePtrOutput
ToParameterTypePtrOutputWithContext(context.Context) ParameterTypePtrOutput
}
type parameterTypePtr string
func ParameterTypePtr(v string) ParameterTypePtrInput {
return (*parameterTypePtr)(&v)
}
func (*parameterTypePtr) ElementType() reflect.Type {
return parameterTypePtrType
}
func (in *parameterTypePtr) ToParameterTypePtrOutput() ParameterTypePtrOutput {
return pulumi.ToOutput(in).(ParameterTypePtrOutput)
}
func (in *parameterTypePtr) ToParameterTypePtrOutputWithContext(ctx context.Context) ParameterTypePtrOutput {
return pulumi.ToOutputWithContext(ctx, in).(ParameterTypePtrOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*ParameterTypeInput)(nil)).Elem(), ParameterType("String"))
pulumi.RegisterInputType(reflect.TypeOf((*ParameterTypePtrInput)(nil)).Elem(), ParameterType("String"))
pulumi.RegisterOutputType(ParameterTypeOutput{})
pulumi.RegisterOutputType(ParameterTypePtrOutput{})
}