github.com/pulumi/pulumi-aws/sdk/v6@v6.32.0/go/aws/applicationloadbalancing/pulumiEnums.go (about) 1 // Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. 2 // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** 3 4 package applicationloadbalancing 5 6 import ( 7 "context" 8 "reflect" 9 10 "github.com/pulumi/pulumi/sdk/v3/go/pulumi" 11 ) 12 13 type IpAddressType string 14 15 const ( 16 IpAddressTypeIpv4 = IpAddressType("ipv4") 17 IpAddressTypeDualstack = IpAddressType("dualstack") 18 ) 19 20 func (IpAddressType) ElementType() reflect.Type { 21 return reflect.TypeOf((*IpAddressType)(nil)).Elem() 22 } 23 24 func (e IpAddressType) ToIpAddressTypeOutput() IpAddressTypeOutput { 25 return pulumi.ToOutput(e).(IpAddressTypeOutput) 26 } 27 28 func (e IpAddressType) ToIpAddressTypeOutputWithContext(ctx context.Context) IpAddressTypeOutput { 29 return pulumi.ToOutputWithContext(ctx, e).(IpAddressTypeOutput) 30 } 31 32 func (e IpAddressType) ToIpAddressTypePtrOutput() IpAddressTypePtrOutput { 33 return e.ToIpAddressTypePtrOutputWithContext(context.Background()) 34 } 35 36 func (e IpAddressType) ToIpAddressTypePtrOutputWithContext(ctx context.Context) IpAddressTypePtrOutput { 37 return IpAddressType(e).ToIpAddressTypeOutputWithContext(ctx).ToIpAddressTypePtrOutputWithContext(ctx) 38 } 39 40 func (e IpAddressType) ToStringOutput() pulumi.StringOutput { 41 return pulumi.ToOutput(pulumi.String(e)).(pulumi.StringOutput) 42 } 43 44 func (e IpAddressType) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { 45 return pulumi.ToOutputWithContext(ctx, pulumi.String(e)).(pulumi.StringOutput) 46 } 47 48 func (e IpAddressType) ToStringPtrOutput() pulumi.StringPtrOutput { 49 return pulumi.String(e).ToStringPtrOutputWithContext(context.Background()) 50 } 51 52 func (e IpAddressType) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { 53 return pulumi.String(e).ToStringOutputWithContext(ctx).ToStringPtrOutputWithContext(ctx) 54 } 55 56 type IpAddressTypeOutput struct{ *pulumi.OutputState } 57 58 func (IpAddressTypeOutput) ElementType() reflect.Type { 59 return reflect.TypeOf((*IpAddressType)(nil)).Elem() 60 } 61 62 func (o IpAddressTypeOutput) ToIpAddressTypeOutput() IpAddressTypeOutput { 63 return o 64 } 65 66 func (o IpAddressTypeOutput) ToIpAddressTypeOutputWithContext(ctx context.Context) IpAddressTypeOutput { 67 return o 68 } 69 70 func (o IpAddressTypeOutput) ToIpAddressTypePtrOutput() IpAddressTypePtrOutput { 71 return o.ToIpAddressTypePtrOutputWithContext(context.Background()) 72 } 73 74 func (o IpAddressTypeOutput) ToIpAddressTypePtrOutputWithContext(ctx context.Context) IpAddressTypePtrOutput { 75 return o.ApplyTWithContext(ctx, func(_ context.Context, v IpAddressType) *IpAddressType { 76 return &v 77 }).(IpAddressTypePtrOutput) 78 } 79 80 func (o IpAddressTypeOutput) ToStringOutput() pulumi.StringOutput { 81 return o.ToStringOutputWithContext(context.Background()) 82 } 83 84 func (o IpAddressTypeOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { 85 return o.ApplyTWithContext(ctx, func(_ context.Context, e IpAddressType) string { 86 return string(e) 87 }).(pulumi.StringOutput) 88 } 89 90 func (o IpAddressTypeOutput) ToStringPtrOutput() pulumi.StringPtrOutput { 91 return o.ToStringPtrOutputWithContext(context.Background()) 92 } 93 94 func (o IpAddressTypeOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { 95 return o.ApplyTWithContext(ctx, func(_ context.Context, e IpAddressType) *string { 96 v := string(e) 97 return &v 98 }).(pulumi.StringPtrOutput) 99 } 100 101 type IpAddressTypePtrOutput struct{ *pulumi.OutputState } 102 103 func (IpAddressTypePtrOutput) ElementType() reflect.Type { 104 return reflect.TypeOf((**IpAddressType)(nil)).Elem() 105 } 106 107 func (o IpAddressTypePtrOutput) ToIpAddressTypePtrOutput() IpAddressTypePtrOutput { 108 return o 109 } 110 111 func (o IpAddressTypePtrOutput) ToIpAddressTypePtrOutputWithContext(ctx context.Context) IpAddressTypePtrOutput { 112 return o 113 } 114 115 func (o IpAddressTypePtrOutput) Elem() IpAddressTypeOutput { 116 return o.ApplyT(func(v *IpAddressType) IpAddressType { 117 if v != nil { 118 return *v 119 } 120 var ret IpAddressType 121 return ret 122 }).(IpAddressTypeOutput) 123 } 124 125 func (o IpAddressTypePtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput { 126 return o.ToStringPtrOutputWithContext(context.Background()) 127 } 128 129 func (o IpAddressTypePtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { 130 return o.ApplyTWithContext(ctx, func(_ context.Context, e *IpAddressType) *string { 131 if e == nil { 132 return nil 133 } 134 v := string(*e) 135 return &v 136 }).(pulumi.StringPtrOutput) 137 } 138 139 // IpAddressTypeInput is an input type that accepts values of the IpAddressType enum 140 // A concrete instance of `IpAddressTypeInput` can be one of the following: 141 // 142 // IpAddressTypeIpv4 143 // IpAddressTypeDualstack 144 type IpAddressTypeInput interface { 145 pulumi.Input 146 147 ToIpAddressTypeOutput() IpAddressTypeOutput 148 ToIpAddressTypeOutputWithContext(context.Context) IpAddressTypeOutput 149 } 150 151 var ipAddressTypePtrType = reflect.TypeOf((**IpAddressType)(nil)).Elem() 152 153 type IpAddressTypePtrInput interface { 154 pulumi.Input 155 156 ToIpAddressTypePtrOutput() IpAddressTypePtrOutput 157 ToIpAddressTypePtrOutputWithContext(context.Context) IpAddressTypePtrOutput 158 } 159 160 type ipAddressTypePtr string 161 162 func IpAddressTypePtr(v string) IpAddressTypePtrInput { 163 return (*ipAddressTypePtr)(&v) 164 } 165 166 func (*ipAddressTypePtr) ElementType() reflect.Type { 167 return ipAddressTypePtrType 168 } 169 170 func (in *ipAddressTypePtr) ToIpAddressTypePtrOutput() IpAddressTypePtrOutput { 171 return pulumi.ToOutput(in).(IpAddressTypePtrOutput) 172 } 173 174 func (in *ipAddressTypePtr) ToIpAddressTypePtrOutputWithContext(ctx context.Context) IpAddressTypePtrOutput { 175 return pulumi.ToOutputWithContext(ctx, in).(IpAddressTypePtrOutput) 176 } 177 178 type LoadBalancerType string 179 180 const ( 181 LoadBalancerTypeApplication = LoadBalancerType("application") 182 LoadBalancerTypeNetwork = LoadBalancerType("network") 183 ) 184 185 func (LoadBalancerType) ElementType() reflect.Type { 186 return reflect.TypeOf((*LoadBalancerType)(nil)).Elem() 187 } 188 189 func (e LoadBalancerType) ToLoadBalancerTypeOutput() LoadBalancerTypeOutput { 190 return pulumi.ToOutput(e).(LoadBalancerTypeOutput) 191 } 192 193 func (e LoadBalancerType) ToLoadBalancerTypeOutputWithContext(ctx context.Context) LoadBalancerTypeOutput { 194 return pulumi.ToOutputWithContext(ctx, e).(LoadBalancerTypeOutput) 195 } 196 197 func (e LoadBalancerType) ToLoadBalancerTypePtrOutput() LoadBalancerTypePtrOutput { 198 return e.ToLoadBalancerTypePtrOutputWithContext(context.Background()) 199 } 200 201 func (e LoadBalancerType) ToLoadBalancerTypePtrOutputWithContext(ctx context.Context) LoadBalancerTypePtrOutput { 202 return LoadBalancerType(e).ToLoadBalancerTypeOutputWithContext(ctx).ToLoadBalancerTypePtrOutputWithContext(ctx) 203 } 204 205 func (e LoadBalancerType) ToStringOutput() pulumi.StringOutput { 206 return pulumi.ToOutput(pulumi.String(e)).(pulumi.StringOutput) 207 } 208 209 func (e LoadBalancerType) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { 210 return pulumi.ToOutputWithContext(ctx, pulumi.String(e)).(pulumi.StringOutput) 211 } 212 213 func (e LoadBalancerType) ToStringPtrOutput() pulumi.StringPtrOutput { 214 return pulumi.String(e).ToStringPtrOutputWithContext(context.Background()) 215 } 216 217 func (e LoadBalancerType) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { 218 return pulumi.String(e).ToStringOutputWithContext(ctx).ToStringPtrOutputWithContext(ctx) 219 } 220 221 type LoadBalancerTypeOutput struct{ *pulumi.OutputState } 222 223 func (LoadBalancerTypeOutput) ElementType() reflect.Type { 224 return reflect.TypeOf((*LoadBalancerType)(nil)).Elem() 225 } 226 227 func (o LoadBalancerTypeOutput) ToLoadBalancerTypeOutput() LoadBalancerTypeOutput { 228 return o 229 } 230 231 func (o LoadBalancerTypeOutput) ToLoadBalancerTypeOutputWithContext(ctx context.Context) LoadBalancerTypeOutput { 232 return o 233 } 234 235 func (o LoadBalancerTypeOutput) ToLoadBalancerTypePtrOutput() LoadBalancerTypePtrOutput { 236 return o.ToLoadBalancerTypePtrOutputWithContext(context.Background()) 237 } 238 239 func (o LoadBalancerTypeOutput) ToLoadBalancerTypePtrOutputWithContext(ctx context.Context) LoadBalancerTypePtrOutput { 240 return o.ApplyTWithContext(ctx, func(_ context.Context, v LoadBalancerType) *LoadBalancerType { 241 return &v 242 }).(LoadBalancerTypePtrOutput) 243 } 244 245 func (o LoadBalancerTypeOutput) ToStringOutput() pulumi.StringOutput { 246 return o.ToStringOutputWithContext(context.Background()) 247 } 248 249 func (o LoadBalancerTypeOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput { 250 return o.ApplyTWithContext(ctx, func(_ context.Context, e LoadBalancerType) string { 251 return string(e) 252 }).(pulumi.StringOutput) 253 } 254 255 func (o LoadBalancerTypeOutput) ToStringPtrOutput() pulumi.StringPtrOutput { 256 return o.ToStringPtrOutputWithContext(context.Background()) 257 } 258 259 func (o LoadBalancerTypeOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { 260 return o.ApplyTWithContext(ctx, func(_ context.Context, e LoadBalancerType) *string { 261 v := string(e) 262 return &v 263 }).(pulumi.StringPtrOutput) 264 } 265 266 type LoadBalancerTypePtrOutput struct{ *pulumi.OutputState } 267 268 func (LoadBalancerTypePtrOutput) ElementType() reflect.Type { 269 return reflect.TypeOf((**LoadBalancerType)(nil)).Elem() 270 } 271 272 func (o LoadBalancerTypePtrOutput) ToLoadBalancerTypePtrOutput() LoadBalancerTypePtrOutput { 273 return o 274 } 275 276 func (o LoadBalancerTypePtrOutput) ToLoadBalancerTypePtrOutputWithContext(ctx context.Context) LoadBalancerTypePtrOutput { 277 return o 278 } 279 280 func (o LoadBalancerTypePtrOutput) Elem() LoadBalancerTypeOutput { 281 return o.ApplyT(func(v *LoadBalancerType) LoadBalancerType { 282 if v != nil { 283 return *v 284 } 285 var ret LoadBalancerType 286 return ret 287 }).(LoadBalancerTypeOutput) 288 } 289 290 func (o LoadBalancerTypePtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput { 291 return o.ToStringPtrOutputWithContext(context.Background()) 292 } 293 294 func (o LoadBalancerTypePtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput { 295 return o.ApplyTWithContext(ctx, func(_ context.Context, e *LoadBalancerType) *string { 296 if e == nil { 297 return nil 298 } 299 v := string(*e) 300 return &v 301 }).(pulumi.StringPtrOutput) 302 } 303 304 // LoadBalancerTypeInput is an input type that accepts values of the LoadBalancerType enum 305 // A concrete instance of `LoadBalancerTypeInput` can be one of the following: 306 // 307 // LoadBalancerTypeApplication 308 // LoadBalancerTypeNetwork 309 type LoadBalancerTypeInput interface { 310 pulumi.Input 311 312 ToLoadBalancerTypeOutput() LoadBalancerTypeOutput 313 ToLoadBalancerTypeOutputWithContext(context.Context) LoadBalancerTypeOutput 314 } 315 316 var loadBalancerTypePtrType = reflect.TypeOf((**LoadBalancerType)(nil)).Elem() 317 318 type LoadBalancerTypePtrInput interface { 319 pulumi.Input 320 321 ToLoadBalancerTypePtrOutput() LoadBalancerTypePtrOutput 322 ToLoadBalancerTypePtrOutputWithContext(context.Context) LoadBalancerTypePtrOutput 323 } 324 325 type loadBalancerTypePtr string 326 327 func LoadBalancerTypePtr(v string) LoadBalancerTypePtrInput { 328 return (*loadBalancerTypePtr)(&v) 329 } 330 331 func (*loadBalancerTypePtr) ElementType() reflect.Type { 332 return loadBalancerTypePtrType 333 } 334 335 func (in *loadBalancerTypePtr) ToLoadBalancerTypePtrOutput() LoadBalancerTypePtrOutput { 336 return pulumi.ToOutput(in).(LoadBalancerTypePtrOutput) 337 } 338 339 func (in *loadBalancerTypePtr) ToLoadBalancerTypePtrOutputWithContext(ctx context.Context) LoadBalancerTypePtrOutput { 340 return pulumi.ToOutputWithContext(ctx, in).(LoadBalancerTypePtrOutput) 341 } 342 343 func init() { 344 pulumi.RegisterInputType(reflect.TypeOf((*IpAddressTypeInput)(nil)).Elem(), IpAddressType("ipv4")) 345 pulumi.RegisterInputType(reflect.TypeOf((*IpAddressTypePtrInput)(nil)).Elem(), IpAddressType("ipv4")) 346 pulumi.RegisterInputType(reflect.TypeOf((*LoadBalancerTypeInput)(nil)).Elem(), LoadBalancerType("application")) 347 pulumi.RegisterInputType(reflect.TypeOf((*LoadBalancerTypePtrInput)(nil)).Elem(), LoadBalancerType("application")) 348 pulumi.RegisterOutputType(IpAddressTypeOutput{}) 349 pulumi.RegisterOutputType(IpAddressTypePtrOutput{}) 350 pulumi.RegisterOutputType(LoadBalancerTypeOutput{}) 351 pulumi.RegisterOutputType(LoadBalancerTypePtrOutput{}) 352 }