generated from pulumi/pulumi-tf-provider-boilerplate
/
interfaceGre.go
executable file
·461 lines (398 loc) · 23.4 KB
/
interfaceGre.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
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package iface
import (
"context"
"reflect"
"errors"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// ## Example Usage
//
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi-routeros/sdk/go/routeros/Iface"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// _, err := Iface.NewInterfaceGre(ctx, "greHq", &Iface.InterfaceGreArgs{
// Disabled: pulumi.Bool(true),
// RemoteAddress: pulumi.String("10.77.3.26"),
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
//
// ## Import
//
// # Import with the name of the gre interface in case of the example use gre-hq-1
//
// ```sh
//
// $ pulumi import routeros:Iface/interfaceGre:InterfaceGre gre_hq gre-hq-1
//
// ```
type InterfaceGre struct {
pulumi.CustomResourceState
// <em>Resource ID type (.id / name). This is an internal service field, setting a value is not required.</em>
___id_ pulumi.IntPtrOutput `pulumi:"___id_"`
// <em>Resource path for CRUD operations. This is an internal service field, setting a value is not required.</em>
___path_ pulumi.StringPtrOutput `pulumi:"___path_"`
ActualMtu pulumi.IntOutput `pulumi:"actualMtu"`
// Whether to allow FastPath processing. Must be disabled if IPsec tunneling is used.
AllowFastPath pulumi.BoolPtrOutput `pulumi:"allowFastPath"`
// Controls whether to change MSS size for received TCP SYN packets. When enabled, a router will change the MSS size for received TCP SYN packets if the current MSS size exceeds the tunnel interface MTU (taking into account the TCP/IP overhead). The received encapsulated packet will still contain the original MSS, and only after decapsulation the MSS is changed.
ClampTcpMss pulumi.BoolPtrOutput `pulumi:"clampTcpMss"`
Comment pulumi.StringPtrOutput `pulumi:"comment"`
Disabled pulumi.BoolPtrOutput `pulumi:"disabled"`
DontFragment pulumi.StringPtrOutput `pulumi:"dontFragment"`
// Set dscp value in GRE header to a fixed value '0..63' or 'inherit' from dscp value taken from tunnelled traffic.
Dscp pulumi.StringPtrOutput `pulumi:"dscp"`
// When secret is specified, router adds dynamic IPsec peer to remote-address with pre-shared key and policy (by default phase2 uses sha1/aes128cbc).
IpsecSecret pulumi.StringPtrOutput `pulumi:"ipsecSecret"`
// Tunnel keepalive parameter sets the time interval in which the tunnel running flag will remain even if the remote end of tunnel goes down. If configured time,retries fail, interface running flag is removed. Parameters are written in following format: KeepaliveInterval,KeepaliveRetries where KeepaliveInterval is time interval and KeepaliveRetries - number of retry attempts. KeepaliveInterval is integer 0..4294967295
Keepalive pulumi.StringPtrOutput `pulumi:"keepalive"`
// Layer2 Maximum transmission unit.
L2mtu pulumi.IntOutput `pulumi:"l2mtu"`
LocalAddress pulumi.StringPtrOutput `pulumi:"localAddress"`
// Layer3 Maximum transmission unit ('auto', 0 .. 65535)
Mtu pulumi.StringOutput `pulumi:"mtu"`
// Changing the name of this resource will force it to be recreated. > The links of other configuration properties to this
// resource may be lost! > Changing the name of the resource outside of a Terraform will result in a loss of control
// integrity for that resource!
Name pulumi.StringOutput `pulumi:"name"`
RemoteAddress pulumi.StringOutput `pulumi:"remoteAddress"`
Running pulumi.BoolOutput `pulumi:"running"`
}
// NewInterfaceGre registers a new resource with the given unique name, arguments, and options.
func NewInterfaceGre(ctx *pulumi.Context,
name string, args *InterfaceGreArgs, opts ...pulumi.ResourceOption) (*InterfaceGre, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.RemoteAddress == nil {
return nil, errors.New("invalid value for required argument 'RemoteAddress'")
}
if args.IpsecSecret != nil {
args.IpsecSecret = pulumi.ToSecret(args.IpsecSecret).(pulumi.StringPtrInput)
}
secrets := pulumi.AdditionalSecretOutputs([]string{
"ipsecSecret",
})
opts = append(opts, secrets)
var resource InterfaceGre
err := ctx.RegisterResource("routeros:Iface/interfaceGre:InterfaceGre", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetInterfaceGre gets an existing InterfaceGre resource's state with the given name, ID, and optional
// state properties that are used to uniquely qualify the lookup (nil if not required).
func GetInterfaceGre(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *InterfaceGreState, opts ...pulumi.ResourceOption) (*InterfaceGre, error) {
var resource InterfaceGre
err := ctx.ReadResource("routeros:Iface/interfaceGre:InterfaceGre", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering InterfaceGre resources.
type interfaceGreState struct {
// <em>Resource ID type (.id / name). This is an internal service field, setting a value is not required.</em>
___id_ *int `pulumi:"___id_"`
// <em>Resource path for CRUD operations. This is an internal service field, setting a value is not required.</em>
___path_ *string `pulumi:"___path_"`
ActualMtu *int `pulumi:"actualMtu"`
// Whether to allow FastPath processing. Must be disabled if IPsec tunneling is used.
AllowFastPath *bool `pulumi:"allowFastPath"`
// Controls whether to change MSS size for received TCP SYN packets. When enabled, a router will change the MSS size for received TCP SYN packets if the current MSS size exceeds the tunnel interface MTU (taking into account the TCP/IP overhead). The received encapsulated packet will still contain the original MSS, and only after decapsulation the MSS is changed.
ClampTcpMss *bool `pulumi:"clampTcpMss"`
Comment *string `pulumi:"comment"`
Disabled *bool `pulumi:"disabled"`
DontFragment *string `pulumi:"dontFragment"`
// Set dscp value in GRE header to a fixed value '0..63' or 'inherit' from dscp value taken from tunnelled traffic.
Dscp *string `pulumi:"dscp"`
// When secret is specified, router adds dynamic IPsec peer to remote-address with pre-shared key and policy (by default phase2 uses sha1/aes128cbc).
IpsecSecret *string `pulumi:"ipsecSecret"`
// Tunnel keepalive parameter sets the time interval in which the tunnel running flag will remain even if the remote end of tunnel goes down. If configured time,retries fail, interface running flag is removed. Parameters are written in following format: KeepaliveInterval,KeepaliveRetries where KeepaliveInterval is time interval and KeepaliveRetries - number of retry attempts. KeepaliveInterval is integer 0..4294967295
Keepalive *string `pulumi:"keepalive"`
// Layer2 Maximum transmission unit.
L2mtu *int `pulumi:"l2mtu"`
LocalAddress *string `pulumi:"localAddress"`
// Layer3 Maximum transmission unit ('auto', 0 .. 65535)
Mtu *string `pulumi:"mtu"`
// Changing the name of this resource will force it to be recreated. > The links of other configuration properties to this
// resource may be lost! > Changing the name of the resource outside of a Terraform will result in a loss of control
// integrity for that resource!
Name *string `pulumi:"name"`
RemoteAddress *string `pulumi:"remoteAddress"`
Running *bool `pulumi:"running"`
}
type InterfaceGreState struct {
// <em>Resource ID type (.id / name). This is an internal service field, setting a value is not required.</em>
___id_ pulumi.IntPtrInput
// <em>Resource path for CRUD operations. This is an internal service field, setting a value is not required.</em>
___path_ pulumi.StringPtrInput
ActualMtu pulumi.IntPtrInput
// Whether to allow FastPath processing. Must be disabled if IPsec tunneling is used.
AllowFastPath pulumi.BoolPtrInput
// Controls whether to change MSS size for received TCP SYN packets. When enabled, a router will change the MSS size for received TCP SYN packets if the current MSS size exceeds the tunnel interface MTU (taking into account the TCP/IP overhead). The received encapsulated packet will still contain the original MSS, and only after decapsulation the MSS is changed.
ClampTcpMss pulumi.BoolPtrInput
Comment pulumi.StringPtrInput
Disabled pulumi.BoolPtrInput
DontFragment pulumi.StringPtrInput
// Set dscp value in GRE header to a fixed value '0..63' or 'inherit' from dscp value taken from tunnelled traffic.
Dscp pulumi.StringPtrInput
// When secret is specified, router adds dynamic IPsec peer to remote-address with pre-shared key and policy (by default phase2 uses sha1/aes128cbc).
IpsecSecret pulumi.StringPtrInput
// Tunnel keepalive parameter sets the time interval in which the tunnel running flag will remain even if the remote end of tunnel goes down. If configured time,retries fail, interface running flag is removed. Parameters are written in following format: KeepaliveInterval,KeepaliveRetries where KeepaliveInterval is time interval and KeepaliveRetries - number of retry attempts. KeepaliveInterval is integer 0..4294967295
Keepalive pulumi.StringPtrInput
// Layer2 Maximum transmission unit.
L2mtu pulumi.IntPtrInput
LocalAddress pulumi.StringPtrInput
// Layer3 Maximum transmission unit ('auto', 0 .. 65535)
Mtu pulumi.StringPtrInput
// Changing the name of this resource will force it to be recreated. > The links of other configuration properties to this
// resource may be lost! > Changing the name of the resource outside of a Terraform will result in a loss of control
// integrity for that resource!
Name pulumi.StringPtrInput
RemoteAddress pulumi.StringPtrInput
Running pulumi.BoolPtrInput
}
func (InterfaceGreState) ElementType() reflect.Type {
return reflect.TypeOf((*interfaceGreState)(nil)).Elem()
}
type interfaceGreArgs struct {
// <em>Resource ID type (.id / name). This is an internal service field, setting a value is not required.</em>
___id_ *int `pulumi:"___id_"`
// <em>Resource path for CRUD operations. This is an internal service field, setting a value is not required.</em>
___path_ *string `pulumi:"___path_"`
// Whether to allow FastPath processing. Must be disabled if IPsec tunneling is used.
AllowFastPath *bool `pulumi:"allowFastPath"`
// Controls whether to change MSS size for received TCP SYN packets. When enabled, a router will change the MSS size for received TCP SYN packets if the current MSS size exceeds the tunnel interface MTU (taking into account the TCP/IP overhead). The received encapsulated packet will still contain the original MSS, and only after decapsulation the MSS is changed.
ClampTcpMss *bool `pulumi:"clampTcpMss"`
Comment *string `pulumi:"comment"`
Disabled *bool `pulumi:"disabled"`
DontFragment *string `pulumi:"dontFragment"`
// Set dscp value in GRE header to a fixed value '0..63' or 'inherit' from dscp value taken from tunnelled traffic.
Dscp *string `pulumi:"dscp"`
// When secret is specified, router adds dynamic IPsec peer to remote-address with pre-shared key and policy (by default phase2 uses sha1/aes128cbc).
IpsecSecret *string `pulumi:"ipsecSecret"`
// Tunnel keepalive parameter sets the time interval in which the tunnel running flag will remain even if the remote end of tunnel goes down. If configured time,retries fail, interface running flag is removed. Parameters are written in following format: KeepaliveInterval,KeepaliveRetries where KeepaliveInterval is time interval and KeepaliveRetries - number of retry attempts. KeepaliveInterval is integer 0..4294967295
Keepalive *string `pulumi:"keepalive"`
LocalAddress *string `pulumi:"localAddress"`
// Layer3 Maximum transmission unit ('auto', 0 .. 65535)
Mtu *string `pulumi:"mtu"`
// Changing the name of this resource will force it to be recreated. > The links of other configuration properties to this
// resource may be lost! > Changing the name of the resource outside of a Terraform will result in a loss of control
// integrity for that resource!
Name *string `pulumi:"name"`
RemoteAddress string `pulumi:"remoteAddress"`
}
// The set of arguments for constructing a InterfaceGre resource.
type InterfaceGreArgs struct {
// <em>Resource ID type (.id / name). This is an internal service field, setting a value is not required.</em>
___id_ pulumi.IntPtrInput
// <em>Resource path for CRUD operations. This is an internal service field, setting a value is not required.</em>
___path_ pulumi.StringPtrInput
// Whether to allow FastPath processing. Must be disabled if IPsec tunneling is used.
AllowFastPath pulumi.BoolPtrInput
// Controls whether to change MSS size for received TCP SYN packets. When enabled, a router will change the MSS size for received TCP SYN packets if the current MSS size exceeds the tunnel interface MTU (taking into account the TCP/IP overhead). The received encapsulated packet will still contain the original MSS, and only after decapsulation the MSS is changed.
ClampTcpMss pulumi.BoolPtrInput
Comment pulumi.StringPtrInput
Disabled pulumi.BoolPtrInput
DontFragment pulumi.StringPtrInput
// Set dscp value in GRE header to a fixed value '0..63' or 'inherit' from dscp value taken from tunnelled traffic.
Dscp pulumi.StringPtrInput
// When secret is specified, router adds dynamic IPsec peer to remote-address with pre-shared key and policy (by default phase2 uses sha1/aes128cbc).
IpsecSecret pulumi.StringPtrInput
// Tunnel keepalive parameter sets the time interval in which the tunnel running flag will remain even if the remote end of tunnel goes down. If configured time,retries fail, interface running flag is removed. Parameters are written in following format: KeepaliveInterval,KeepaliveRetries where KeepaliveInterval is time interval and KeepaliveRetries - number of retry attempts. KeepaliveInterval is integer 0..4294967295
Keepalive pulumi.StringPtrInput
LocalAddress pulumi.StringPtrInput
// Layer3 Maximum transmission unit ('auto', 0 .. 65535)
Mtu pulumi.StringPtrInput
// Changing the name of this resource will force it to be recreated. > The links of other configuration properties to this
// resource may be lost! > Changing the name of the resource outside of a Terraform will result in a loss of control
// integrity for that resource!
Name pulumi.StringPtrInput
RemoteAddress pulumi.StringInput
}
func (InterfaceGreArgs) ElementType() reflect.Type {
return reflect.TypeOf((*interfaceGreArgs)(nil)).Elem()
}
type InterfaceGreInput interface {
pulumi.Input
ToInterfaceGreOutput() InterfaceGreOutput
ToInterfaceGreOutputWithContext(ctx context.Context) InterfaceGreOutput
}
func (*InterfaceGre) ElementType() reflect.Type {
return reflect.TypeOf((**InterfaceGre)(nil)).Elem()
}
func (i *InterfaceGre) ToInterfaceGreOutput() InterfaceGreOutput {
return i.ToInterfaceGreOutputWithContext(context.Background())
}
func (i *InterfaceGre) ToInterfaceGreOutputWithContext(ctx context.Context) InterfaceGreOutput {
return pulumi.ToOutputWithContext(ctx, i).(InterfaceGreOutput)
}
// InterfaceGreArrayInput is an input type that accepts InterfaceGreArray and InterfaceGreArrayOutput values.
// You can construct a concrete instance of `InterfaceGreArrayInput` via:
//
// InterfaceGreArray{ InterfaceGreArgs{...} }
type InterfaceGreArrayInput interface {
pulumi.Input
ToInterfaceGreArrayOutput() InterfaceGreArrayOutput
ToInterfaceGreArrayOutputWithContext(context.Context) InterfaceGreArrayOutput
}
type InterfaceGreArray []InterfaceGreInput
func (InterfaceGreArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*InterfaceGre)(nil)).Elem()
}
func (i InterfaceGreArray) ToInterfaceGreArrayOutput() InterfaceGreArrayOutput {
return i.ToInterfaceGreArrayOutputWithContext(context.Background())
}
func (i InterfaceGreArray) ToInterfaceGreArrayOutputWithContext(ctx context.Context) InterfaceGreArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(InterfaceGreArrayOutput)
}
// InterfaceGreMapInput is an input type that accepts InterfaceGreMap and InterfaceGreMapOutput values.
// You can construct a concrete instance of `InterfaceGreMapInput` via:
//
// InterfaceGreMap{ "key": InterfaceGreArgs{...} }
type InterfaceGreMapInput interface {
pulumi.Input
ToInterfaceGreMapOutput() InterfaceGreMapOutput
ToInterfaceGreMapOutputWithContext(context.Context) InterfaceGreMapOutput
}
type InterfaceGreMap map[string]InterfaceGreInput
func (InterfaceGreMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*InterfaceGre)(nil)).Elem()
}
func (i InterfaceGreMap) ToInterfaceGreMapOutput() InterfaceGreMapOutput {
return i.ToInterfaceGreMapOutputWithContext(context.Background())
}
func (i InterfaceGreMap) ToInterfaceGreMapOutputWithContext(ctx context.Context) InterfaceGreMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(InterfaceGreMapOutput)
}
type InterfaceGreOutput struct{ *pulumi.OutputState }
func (InterfaceGreOutput) ElementType() reflect.Type {
return reflect.TypeOf((**InterfaceGre)(nil)).Elem()
}
func (o InterfaceGreOutput) ToInterfaceGreOutput() InterfaceGreOutput {
return o
}
func (o InterfaceGreOutput) ToInterfaceGreOutputWithContext(ctx context.Context) InterfaceGreOutput {
return o
}
// <em>Resource ID type (.id / name). This is an internal service field, setting a value is not required.</em>
func (o InterfaceGreOutput) ___id_() pulumi.IntPtrOutput {
return o.ApplyT(func(v *InterfaceGre) pulumi.IntPtrOutput { return v.___id_ }).(pulumi.IntPtrOutput)
}
// <em>Resource path for CRUD operations. This is an internal service field, setting a value is not required.</em>
func (o InterfaceGreOutput) ___path_() pulumi.StringPtrOutput {
return o.ApplyT(func(v *InterfaceGre) pulumi.StringPtrOutput { return v.___path_ }).(pulumi.StringPtrOutput)
}
func (o InterfaceGreOutput) ActualMtu() pulumi.IntOutput {
return o.ApplyT(func(v *InterfaceGre) pulumi.IntOutput { return v.ActualMtu }).(pulumi.IntOutput)
}
// Whether to allow FastPath processing. Must be disabled if IPsec tunneling is used.
func (o InterfaceGreOutput) AllowFastPath() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *InterfaceGre) pulumi.BoolPtrOutput { return v.AllowFastPath }).(pulumi.BoolPtrOutput)
}
// Controls whether to change MSS size for received TCP SYN packets. When enabled, a router will change the MSS size for received TCP SYN packets if the current MSS size exceeds the tunnel interface MTU (taking into account the TCP/IP overhead). The received encapsulated packet will still contain the original MSS, and only after decapsulation the MSS is changed.
func (o InterfaceGreOutput) ClampTcpMss() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *InterfaceGre) pulumi.BoolPtrOutput { return v.ClampTcpMss }).(pulumi.BoolPtrOutput)
}
func (o InterfaceGreOutput) Comment() pulumi.StringPtrOutput {
return o.ApplyT(func(v *InterfaceGre) pulumi.StringPtrOutput { return v.Comment }).(pulumi.StringPtrOutput)
}
func (o InterfaceGreOutput) Disabled() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *InterfaceGre) pulumi.BoolPtrOutput { return v.Disabled }).(pulumi.BoolPtrOutput)
}
func (o InterfaceGreOutput) DontFragment() pulumi.StringPtrOutput {
return o.ApplyT(func(v *InterfaceGre) pulumi.StringPtrOutput { return v.DontFragment }).(pulumi.StringPtrOutput)
}
// Set dscp value in GRE header to a fixed value '0..63' or 'inherit' from dscp value taken from tunnelled traffic.
func (o InterfaceGreOutput) Dscp() pulumi.StringPtrOutput {
return o.ApplyT(func(v *InterfaceGre) pulumi.StringPtrOutput { return v.Dscp }).(pulumi.StringPtrOutput)
}
// When secret is specified, router adds dynamic IPsec peer to remote-address with pre-shared key and policy (by default phase2 uses sha1/aes128cbc).
func (o InterfaceGreOutput) IpsecSecret() pulumi.StringPtrOutput {
return o.ApplyT(func(v *InterfaceGre) pulumi.StringPtrOutput { return v.IpsecSecret }).(pulumi.StringPtrOutput)
}
// Tunnel keepalive parameter sets the time interval in which the tunnel running flag will remain even if the remote end of tunnel goes down. If configured time,retries fail, interface running flag is removed. Parameters are written in following format: KeepaliveInterval,KeepaliveRetries where KeepaliveInterval is time interval and KeepaliveRetries - number of retry attempts. KeepaliveInterval is integer 0..4294967295
func (o InterfaceGreOutput) Keepalive() pulumi.StringPtrOutput {
return o.ApplyT(func(v *InterfaceGre) pulumi.StringPtrOutput { return v.Keepalive }).(pulumi.StringPtrOutput)
}
// Layer2 Maximum transmission unit.
func (o InterfaceGreOutput) L2mtu() pulumi.IntOutput {
return o.ApplyT(func(v *InterfaceGre) pulumi.IntOutput { return v.L2mtu }).(pulumi.IntOutput)
}
func (o InterfaceGreOutput) LocalAddress() pulumi.StringPtrOutput {
return o.ApplyT(func(v *InterfaceGre) pulumi.StringPtrOutput { return v.LocalAddress }).(pulumi.StringPtrOutput)
}
// Layer3 Maximum transmission unit ('auto', 0 .. 65535)
func (o InterfaceGreOutput) Mtu() pulumi.StringOutput {
return o.ApplyT(func(v *InterfaceGre) pulumi.StringOutput { return v.Mtu }).(pulumi.StringOutput)
}
// Changing the name of this resource will force it to be recreated. > The links of other configuration properties to this
// resource may be lost! > Changing the name of the resource outside of a Terraform will result in a loss of control
// integrity for that resource!
func (o InterfaceGreOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v *InterfaceGre) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
}
func (o InterfaceGreOutput) RemoteAddress() pulumi.StringOutput {
return o.ApplyT(func(v *InterfaceGre) pulumi.StringOutput { return v.RemoteAddress }).(pulumi.StringOutput)
}
func (o InterfaceGreOutput) Running() pulumi.BoolOutput {
return o.ApplyT(func(v *InterfaceGre) pulumi.BoolOutput { return v.Running }).(pulumi.BoolOutput)
}
type InterfaceGreArrayOutput struct{ *pulumi.OutputState }
func (InterfaceGreArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*InterfaceGre)(nil)).Elem()
}
func (o InterfaceGreArrayOutput) ToInterfaceGreArrayOutput() InterfaceGreArrayOutput {
return o
}
func (o InterfaceGreArrayOutput) ToInterfaceGreArrayOutputWithContext(ctx context.Context) InterfaceGreArrayOutput {
return o
}
func (o InterfaceGreArrayOutput) Index(i pulumi.IntInput) InterfaceGreOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *InterfaceGre {
return vs[0].([]*InterfaceGre)[vs[1].(int)]
}).(InterfaceGreOutput)
}
type InterfaceGreMapOutput struct{ *pulumi.OutputState }
func (InterfaceGreMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*InterfaceGre)(nil)).Elem()
}
func (o InterfaceGreMapOutput) ToInterfaceGreMapOutput() InterfaceGreMapOutput {
return o
}
func (o InterfaceGreMapOutput) ToInterfaceGreMapOutputWithContext(ctx context.Context) InterfaceGreMapOutput {
return o
}
func (o InterfaceGreMapOutput) MapIndex(k pulumi.StringInput) InterfaceGreOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *InterfaceGre {
return vs[0].(map[string]*InterfaceGre)[vs[1].(string)]
}).(InterfaceGreOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*InterfaceGreInput)(nil)).Elem(), &InterfaceGre{})
pulumi.RegisterInputType(reflect.TypeOf((*InterfaceGreArrayInput)(nil)).Elem(), InterfaceGreArray{})
pulumi.RegisterInputType(reflect.TypeOf((*InterfaceGreMapInput)(nil)).Elem(), InterfaceGreMap{})
pulumi.RegisterOutputType(InterfaceGreOutput{})
pulumi.RegisterOutputType(InterfaceGreArrayOutput{})
pulumi.RegisterOutputType(InterfaceGreMapOutput{})
}