generated from pulumi/pulumi-tf-provider-boilerplate
/
outputsTcpGroup.go
466 lines (409 loc) · 28.4 KB
/
outputsTcpGroup.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
462
463
464
465
466
// 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 splunk
import (
"context"
"reflect"
"errors"
"github.com/pulumi/pulumi-splunk/sdk/go/splunk/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// ## # Resource: OutputsTcpGroup
//
// Access to the configuration of a group of one or more data forwarding destinations.
//
// ## Example Usage
//
// <!--Start PulumiCodeChooser -->
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi-splunk/sdk/go/splunk"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// _, err := splunk.NewOutputsTcpGroup(ctx, "tcpGroup", &splunk.OutputsTcpGroupArgs{
// Disabled: pulumi.Bool(false),
// DropEventsOnQueueFull: pulumi.Int(60),
// MaxQueueSize: pulumi.String("100KB"),
// SendCookedData: pulumi.Bool(true),
// Servers: pulumi.StringArray{
// pulumi.String("1.1.1.1:1234"),
// pulumi.String("2.2.2.2:1234"),
// },
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
// <!--End PulumiCodeChooser -->
type OutputsTcpGroup struct {
pulumi.CustomResourceState
// The app/user context that is the namespace for the resource
Acl OutputsTcpGroupAclOutput `pulumi:"acl"`
// If true, forwarder sends compressed data. If set to true, the receiver port must also have compression turned on.
Compressed pulumi.BoolOutput `pulumi:"compressed"`
// If true, disables the group.
Disabled pulumi.BoolOutput `pulumi:"disabled"`
// If set to a positive number, wait the specified number of seconds before throwing out all new events until the output queue has space. Defaults to -1 (do not drop events).
// <br>CAUTION: Do not set this value to a positive integer if you are monitoring files.
// Setting this to -1 or 0 causes the output queue to block when it gets full, which causes further blocking up the processing chain. If any target group queue is blocked, no more data reaches any other target group.
// Using auto load-balancing is the best way to minimize this condition, because, in that case, multiple receivers must be down (or jammed up) before queue blocking can occur.
DropEventsOnQueueFull pulumi.IntOutput `pulumi:"dropEventsOnQueueFull"`
// How often (in seconds) to send a heartbeat packet to the receiving server.
// Heartbeats are only sent if sendCookedData=true. Defaults to 30 seconds.
HeartbeatFrequency pulumi.IntOutput `pulumi:"heartbeatFrequency"`
// Specify an integer or integer[KB|MB|GB].
// <br>Sets the maximum size of the forwarder output queue. It also sets the maximum size of the wait queue to 3x this value, if you have enabled indexer acknowledgment (useACK=true).
// Although the wait queue and the output queues are both configured by this attribute, they are separate queues. The setting determines the maximum size of the queue in-memory (RAM) buffer.
// For heavy forwarders sending parsed data, maxQueueSize is the maximum number of events. Since events are typically much shorter than data blocks, the memory consumed by the queue on a parsing forwarder is likely to be much smaller than on a non-parsing forwarder, if you use this version of the setting.
// If specified as a lone integer (for example, maxQueueSize=100), maxQueueSize indicates the maximum number of queued events (for parsed data) or blocks of data (for unparsed data). A block of data is approximately 64KB. For non-parsing forwarders, such as universal forwarders, that send unparsed data, maxQueueSize is the maximum number of data blocks.
// If specified as an integer followed by KB, MB, or GB (for example, maxQueueSize=100MB), maxQueueSize indicates the maximum RAM allocated to the queue buffer. Defaults to 500KB (which means a maximum size of 500KB for the output queue and 1500KB for the wait queue, if any).
MaxQueueSize pulumi.StringOutput `pulumi:"maxQueueSize"`
// Valid values: (tcpout | syslog). Specifies the type of output processor.
Method pulumi.StringOutput `pulumi:"method"`
// The name of the group of receivers.
Name pulumi.StringOutput `pulumi:"name"`
// If true, events are cooked (processed by Splunk software). If false, events are raw and untouched prior to sending. Defaults to true.
// Set to false if you are sending to a third-party system.
SendCookedData pulumi.BoolOutput `pulumi:"sendCookedData"`
// Comma-separated list of servers to include in the group.
Servers pulumi.StringArrayOutput `pulumi:"servers"`
// Token value generated by the indexer after configuration.
Token pulumi.StringOutput `pulumi:"token"`
}
// NewOutputsTcpGroup registers a new resource with the given unique name, arguments, and options.
func NewOutputsTcpGroup(ctx *pulumi.Context,
name string, args *OutputsTcpGroupArgs, opts ...pulumi.ResourceOption) (*OutputsTcpGroup, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.Servers == nil {
return nil, errors.New("invalid value for required argument 'Servers'")
}
opts = internal.PkgResourceDefaultOpts(opts)
var resource OutputsTcpGroup
err := ctx.RegisterResource("splunk:index/outputsTcpGroup:OutputsTcpGroup", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetOutputsTcpGroup gets an existing OutputsTcpGroup 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 GetOutputsTcpGroup(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *OutputsTcpGroupState, opts ...pulumi.ResourceOption) (*OutputsTcpGroup, error) {
var resource OutputsTcpGroup
err := ctx.ReadResource("splunk:index/outputsTcpGroup:OutputsTcpGroup", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering OutputsTcpGroup resources.
type outputsTcpGroupState struct {
// The app/user context that is the namespace for the resource
Acl *OutputsTcpGroupAcl `pulumi:"acl"`
// If true, forwarder sends compressed data. If set to true, the receiver port must also have compression turned on.
Compressed *bool `pulumi:"compressed"`
// If true, disables the group.
Disabled *bool `pulumi:"disabled"`
// If set to a positive number, wait the specified number of seconds before throwing out all new events until the output queue has space. Defaults to -1 (do not drop events).
// <br>CAUTION: Do not set this value to a positive integer if you are monitoring files.
// Setting this to -1 or 0 causes the output queue to block when it gets full, which causes further blocking up the processing chain. If any target group queue is blocked, no more data reaches any other target group.
// Using auto load-balancing is the best way to minimize this condition, because, in that case, multiple receivers must be down (or jammed up) before queue blocking can occur.
DropEventsOnQueueFull *int `pulumi:"dropEventsOnQueueFull"`
// How often (in seconds) to send a heartbeat packet to the receiving server.
// Heartbeats are only sent if sendCookedData=true. Defaults to 30 seconds.
HeartbeatFrequency *int `pulumi:"heartbeatFrequency"`
// Specify an integer or integer[KB|MB|GB].
// <br>Sets the maximum size of the forwarder output queue. It also sets the maximum size of the wait queue to 3x this value, if you have enabled indexer acknowledgment (useACK=true).
// Although the wait queue and the output queues are both configured by this attribute, they are separate queues. The setting determines the maximum size of the queue in-memory (RAM) buffer.
// For heavy forwarders sending parsed data, maxQueueSize is the maximum number of events. Since events are typically much shorter than data blocks, the memory consumed by the queue on a parsing forwarder is likely to be much smaller than on a non-parsing forwarder, if you use this version of the setting.
// If specified as a lone integer (for example, maxQueueSize=100), maxQueueSize indicates the maximum number of queued events (for parsed data) or blocks of data (for unparsed data). A block of data is approximately 64KB. For non-parsing forwarders, such as universal forwarders, that send unparsed data, maxQueueSize is the maximum number of data blocks.
// If specified as an integer followed by KB, MB, or GB (for example, maxQueueSize=100MB), maxQueueSize indicates the maximum RAM allocated to the queue buffer. Defaults to 500KB (which means a maximum size of 500KB for the output queue and 1500KB for the wait queue, if any).
MaxQueueSize *string `pulumi:"maxQueueSize"`
// Valid values: (tcpout | syslog). Specifies the type of output processor.
Method *string `pulumi:"method"`
// The name of the group of receivers.
Name *string `pulumi:"name"`
// If true, events are cooked (processed by Splunk software). If false, events are raw and untouched prior to sending. Defaults to true.
// Set to false if you are sending to a third-party system.
SendCookedData *bool `pulumi:"sendCookedData"`
// Comma-separated list of servers to include in the group.
Servers []string `pulumi:"servers"`
// Token value generated by the indexer after configuration.
Token *string `pulumi:"token"`
}
type OutputsTcpGroupState struct {
// The app/user context that is the namespace for the resource
Acl OutputsTcpGroupAclPtrInput
// If true, forwarder sends compressed data. If set to true, the receiver port must also have compression turned on.
Compressed pulumi.BoolPtrInput
// If true, disables the group.
Disabled pulumi.BoolPtrInput
// If set to a positive number, wait the specified number of seconds before throwing out all new events until the output queue has space. Defaults to -1 (do not drop events).
// <br>CAUTION: Do not set this value to a positive integer if you are monitoring files.
// Setting this to -1 or 0 causes the output queue to block when it gets full, which causes further blocking up the processing chain. If any target group queue is blocked, no more data reaches any other target group.
// Using auto load-balancing is the best way to minimize this condition, because, in that case, multiple receivers must be down (or jammed up) before queue blocking can occur.
DropEventsOnQueueFull pulumi.IntPtrInput
// How often (in seconds) to send a heartbeat packet to the receiving server.
// Heartbeats are only sent if sendCookedData=true. Defaults to 30 seconds.
HeartbeatFrequency pulumi.IntPtrInput
// Specify an integer or integer[KB|MB|GB].
// <br>Sets the maximum size of the forwarder output queue. It also sets the maximum size of the wait queue to 3x this value, if you have enabled indexer acknowledgment (useACK=true).
// Although the wait queue and the output queues are both configured by this attribute, they are separate queues. The setting determines the maximum size of the queue in-memory (RAM) buffer.
// For heavy forwarders sending parsed data, maxQueueSize is the maximum number of events. Since events are typically much shorter than data blocks, the memory consumed by the queue on a parsing forwarder is likely to be much smaller than on a non-parsing forwarder, if you use this version of the setting.
// If specified as a lone integer (for example, maxQueueSize=100), maxQueueSize indicates the maximum number of queued events (for parsed data) or blocks of data (for unparsed data). A block of data is approximately 64KB. For non-parsing forwarders, such as universal forwarders, that send unparsed data, maxQueueSize is the maximum number of data blocks.
// If specified as an integer followed by KB, MB, or GB (for example, maxQueueSize=100MB), maxQueueSize indicates the maximum RAM allocated to the queue buffer. Defaults to 500KB (which means a maximum size of 500KB for the output queue and 1500KB for the wait queue, if any).
MaxQueueSize pulumi.StringPtrInput
// Valid values: (tcpout | syslog). Specifies the type of output processor.
Method pulumi.StringPtrInput
// The name of the group of receivers.
Name pulumi.StringPtrInput
// If true, events are cooked (processed by Splunk software). If false, events are raw and untouched prior to sending. Defaults to true.
// Set to false if you are sending to a third-party system.
SendCookedData pulumi.BoolPtrInput
// Comma-separated list of servers to include in the group.
Servers pulumi.StringArrayInput
// Token value generated by the indexer after configuration.
Token pulumi.StringPtrInput
}
func (OutputsTcpGroupState) ElementType() reflect.Type {
return reflect.TypeOf((*outputsTcpGroupState)(nil)).Elem()
}
type outputsTcpGroupArgs struct {
// The app/user context that is the namespace for the resource
Acl *OutputsTcpGroupAcl `pulumi:"acl"`
// If true, forwarder sends compressed data. If set to true, the receiver port must also have compression turned on.
Compressed *bool `pulumi:"compressed"`
// If true, disables the group.
Disabled *bool `pulumi:"disabled"`
// If set to a positive number, wait the specified number of seconds before throwing out all new events until the output queue has space. Defaults to -1 (do not drop events).
// <br>CAUTION: Do not set this value to a positive integer if you are monitoring files.
// Setting this to -1 or 0 causes the output queue to block when it gets full, which causes further blocking up the processing chain. If any target group queue is blocked, no more data reaches any other target group.
// Using auto load-balancing is the best way to minimize this condition, because, in that case, multiple receivers must be down (or jammed up) before queue blocking can occur.
DropEventsOnQueueFull *int `pulumi:"dropEventsOnQueueFull"`
// How often (in seconds) to send a heartbeat packet to the receiving server.
// Heartbeats are only sent if sendCookedData=true. Defaults to 30 seconds.
HeartbeatFrequency *int `pulumi:"heartbeatFrequency"`
// Specify an integer or integer[KB|MB|GB].
// <br>Sets the maximum size of the forwarder output queue. It also sets the maximum size of the wait queue to 3x this value, if you have enabled indexer acknowledgment (useACK=true).
// Although the wait queue and the output queues are both configured by this attribute, they are separate queues. The setting determines the maximum size of the queue in-memory (RAM) buffer.
// For heavy forwarders sending parsed data, maxQueueSize is the maximum number of events. Since events are typically much shorter than data blocks, the memory consumed by the queue on a parsing forwarder is likely to be much smaller than on a non-parsing forwarder, if you use this version of the setting.
// If specified as a lone integer (for example, maxQueueSize=100), maxQueueSize indicates the maximum number of queued events (for parsed data) or blocks of data (for unparsed data). A block of data is approximately 64KB. For non-parsing forwarders, such as universal forwarders, that send unparsed data, maxQueueSize is the maximum number of data blocks.
// If specified as an integer followed by KB, MB, or GB (for example, maxQueueSize=100MB), maxQueueSize indicates the maximum RAM allocated to the queue buffer. Defaults to 500KB (which means a maximum size of 500KB for the output queue and 1500KB for the wait queue, if any).
MaxQueueSize *string `pulumi:"maxQueueSize"`
// Valid values: (tcpout | syslog). Specifies the type of output processor.
Method *string `pulumi:"method"`
// The name of the group of receivers.
Name *string `pulumi:"name"`
// If true, events are cooked (processed by Splunk software). If false, events are raw and untouched prior to sending. Defaults to true.
// Set to false if you are sending to a third-party system.
SendCookedData *bool `pulumi:"sendCookedData"`
// Comma-separated list of servers to include in the group.
Servers []string `pulumi:"servers"`
// Token value generated by the indexer after configuration.
Token *string `pulumi:"token"`
}
// The set of arguments for constructing a OutputsTcpGroup resource.
type OutputsTcpGroupArgs struct {
// The app/user context that is the namespace for the resource
Acl OutputsTcpGroupAclPtrInput
// If true, forwarder sends compressed data. If set to true, the receiver port must also have compression turned on.
Compressed pulumi.BoolPtrInput
// If true, disables the group.
Disabled pulumi.BoolPtrInput
// If set to a positive number, wait the specified number of seconds before throwing out all new events until the output queue has space. Defaults to -1 (do not drop events).
// <br>CAUTION: Do not set this value to a positive integer if you are monitoring files.
// Setting this to -1 or 0 causes the output queue to block when it gets full, which causes further blocking up the processing chain. If any target group queue is blocked, no more data reaches any other target group.
// Using auto load-balancing is the best way to minimize this condition, because, in that case, multiple receivers must be down (or jammed up) before queue blocking can occur.
DropEventsOnQueueFull pulumi.IntPtrInput
// How often (in seconds) to send a heartbeat packet to the receiving server.
// Heartbeats are only sent if sendCookedData=true. Defaults to 30 seconds.
HeartbeatFrequency pulumi.IntPtrInput
// Specify an integer or integer[KB|MB|GB].
// <br>Sets the maximum size of the forwarder output queue. It also sets the maximum size of the wait queue to 3x this value, if you have enabled indexer acknowledgment (useACK=true).
// Although the wait queue and the output queues are both configured by this attribute, they are separate queues. The setting determines the maximum size of the queue in-memory (RAM) buffer.
// For heavy forwarders sending parsed data, maxQueueSize is the maximum number of events. Since events are typically much shorter than data blocks, the memory consumed by the queue on a parsing forwarder is likely to be much smaller than on a non-parsing forwarder, if you use this version of the setting.
// If specified as a lone integer (for example, maxQueueSize=100), maxQueueSize indicates the maximum number of queued events (for parsed data) or blocks of data (for unparsed data). A block of data is approximately 64KB. For non-parsing forwarders, such as universal forwarders, that send unparsed data, maxQueueSize is the maximum number of data blocks.
// If specified as an integer followed by KB, MB, or GB (for example, maxQueueSize=100MB), maxQueueSize indicates the maximum RAM allocated to the queue buffer. Defaults to 500KB (which means a maximum size of 500KB for the output queue and 1500KB for the wait queue, if any).
MaxQueueSize pulumi.StringPtrInput
// Valid values: (tcpout | syslog). Specifies the type of output processor.
Method pulumi.StringPtrInput
// The name of the group of receivers.
Name pulumi.StringPtrInput
// If true, events are cooked (processed by Splunk software). If false, events are raw and untouched prior to sending. Defaults to true.
// Set to false if you are sending to a third-party system.
SendCookedData pulumi.BoolPtrInput
// Comma-separated list of servers to include in the group.
Servers pulumi.StringArrayInput
// Token value generated by the indexer after configuration.
Token pulumi.StringPtrInput
}
func (OutputsTcpGroupArgs) ElementType() reflect.Type {
return reflect.TypeOf((*outputsTcpGroupArgs)(nil)).Elem()
}
type OutputsTcpGroupInput interface {
pulumi.Input
ToOutputsTcpGroupOutput() OutputsTcpGroupOutput
ToOutputsTcpGroupOutputWithContext(ctx context.Context) OutputsTcpGroupOutput
}
func (*OutputsTcpGroup) ElementType() reflect.Type {
return reflect.TypeOf((**OutputsTcpGroup)(nil)).Elem()
}
func (i *OutputsTcpGroup) ToOutputsTcpGroupOutput() OutputsTcpGroupOutput {
return i.ToOutputsTcpGroupOutputWithContext(context.Background())
}
func (i *OutputsTcpGroup) ToOutputsTcpGroupOutputWithContext(ctx context.Context) OutputsTcpGroupOutput {
return pulumi.ToOutputWithContext(ctx, i).(OutputsTcpGroupOutput)
}
// OutputsTcpGroupArrayInput is an input type that accepts OutputsTcpGroupArray and OutputsTcpGroupArrayOutput values.
// You can construct a concrete instance of `OutputsTcpGroupArrayInput` via:
//
// OutputsTcpGroupArray{ OutputsTcpGroupArgs{...} }
type OutputsTcpGroupArrayInput interface {
pulumi.Input
ToOutputsTcpGroupArrayOutput() OutputsTcpGroupArrayOutput
ToOutputsTcpGroupArrayOutputWithContext(context.Context) OutputsTcpGroupArrayOutput
}
type OutputsTcpGroupArray []OutputsTcpGroupInput
func (OutputsTcpGroupArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*OutputsTcpGroup)(nil)).Elem()
}
func (i OutputsTcpGroupArray) ToOutputsTcpGroupArrayOutput() OutputsTcpGroupArrayOutput {
return i.ToOutputsTcpGroupArrayOutputWithContext(context.Background())
}
func (i OutputsTcpGroupArray) ToOutputsTcpGroupArrayOutputWithContext(ctx context.Context) OutputsTcpGroupArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(OutputsTcpGroupArrayOutput)
}
// OutputsTcpGroupMapInput is an input type that accepts OutputsTcpGroupMap and OutputsTcpGroupMapOutput values.
// You can construct a concrete instance of `OutputsTcpGroupMapInput` via:
//
// OutputsTcpGroupMap{ "key": OutputsTcpGroupArgs{...} }
type OutputsTcpGroupMapInput interface {
pulumi.Input
ToOutputsTcpGroupMapOutput() OutputsTcpGroupMapOutput
ToOutputsTcpGroupMapOutputWithContext(context.Context) OutputsTcpGroupMapOutput
}
type OutputsTcpGroupMap map[string]OutputsTcpGroupInput
func (OutputsTcpGroupMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*OutputsTcpGroup)(nil)).Elem()
}
func (i OutputsTcpGroupMap) ToOutputsTcpGroupMapOutput() OutputsTcpGroupMapOutput {
return i.ToOutputsTcpGroupMapOutputWithContext(context.Background())
}
func (i OutputsTcpGroupMap) ToOutputsTcpGroupMapOutputWithContext(ctx context.Context) OutputsTcpGroupMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(OutputsTcpGroupMapOutput)
}
type OutputsTcpGroupOutput struct{ *pulumi.OutputState }
func (OutputsTcpGroupOutput) ElementType() reflect.Type {
return reflect.TypeOf((**OutputsTcpGroup)(nil)).Elem()
}
func (o OutputsTcpGroupOutput) ToOutputsTcpGroupOutput() OutputsTcpGroupOutput {
return o
}
func (o OutputsTcpGroupOutput) ToOutputsTcpGroupOutputWithContext(ctx context.Context) OutputsTcpGroupOutput {
return o
}
// The app/user context that is the namespace for the resource
func (o OutputsTcpGroupOutput) Acl() OutputsTcpGroupAclOutput {
return o.ApplyT(func(v *OutputsTcpGroup) OutputsTcpGroupAclOutput { return v.Acl }).(OutputsTcpGroupAclOutput)
}
// If true, forwarder sends compressed data. If set to true, the receiver port must also have compression turned on.
func (o OutputsTcpGroupOutput) Compressed() pulumi.BoolOutput {
return o.ApplyT(func(v *OutputsTcpGroup) pulumi.BoolOutput { return v.Compressed }).(pulumi.BoolOutput)
}
// If true, disables the group.
func (o OutputsTcpGroupOutput) Disabled() pulumi.BoolOutput {
return o.ApplyT(func(v *OutputsTcpGroup) pulumi.BoolOutput { return v.Disabled }).(pulumi.BoolOutput)
}
// If set to a positive number, wait the specified number of seconds before throwing out all new events until the output queue has space. Defaults to -1 (do not drop events).
// <br>CAUTION: Do not set this value to a positive integer if you are monitoring files.
// Setting this to -1 or 0 causes the output queue to block when it gets full, which causes further blocking up the processing chain. If any target group queue is blocked, no more data reaches any other target group.
// Using auto load-balancing is the best way to minimize this condition, because, in that case, multiple receivers must be down (or jammed up) before queue blocking can occur.
func (o OutputsTcpGroupOutput) DropEventsOnQueueFull() pulumi.IntOutput {
return o.ApplyT(func(v *OutputsTcpGroup) pulumi.IntOutput { return v.DropEventsOnQueueFull }).(pulumi.IntOutput)
}
// How often (in seconds) to send a heartbeat packet to the receiving server.
// Heartbeats are only sent if sendCookedData=true. Defaults to 30 seconds.
func (o OutputsTcpGroupOutput) HeartbeatFrequency() pulumi.IntOutput {
return o.ApplyT(func(v *OutputsTcpGroup) pulumi.IntOutput { return v.HeartbeatFrequency }).(pulumi.IntOutput)
}
// Specify an integer or integer[KB|MB|GB].
// <br>Sets the maximum size of the forwarder output queue. It also sets the maximum size of the wait queue to 3x this value, if you have enabled indexer acknowledgment (useACK=true).
// Although the wait queue and the output queues are both configured by this attribute, they are separate queues. The setting determines the maximum size of the queue in-memory (RAM) buffer.
// For heavy forwarders sending parsed data, maxQueueSize is the maximum number of events. Since events are typically much shorter than data blocks, the memory consumed by the queue on a parsing forwarder is likely to be much smaller than on a non-parsing forwarder, if you use this version of the setting.
// If specified as a lone integer (for example, maxQueueSize=100), maxQueueSize indicates the maximum number of queued events (for parsed data) or blocks of data (for unparsed data). A block of data is approximately 64KB. For non-parsing forwarders, such as universal forwarders, that send unparsed data, maxQueueSize is the maximum number of data blocks.
// If specified as an integer followed by KB, MB, or GB (for example, maxQueueSize=100MB), maxQueueSize indicates the maximum RAM allocated to the queue buffer. Defaults to 500KB (which means a maximum size of 500KB for the output queue and 1500KB for the wait queue, if any).
func (o OutputsTcpGroupOutput) MaxQueueSize() pulumi.StringOutput {
return o.ApplyT(func(v *OutputsTcpGroup) pulumi.StringOutput { return v.MaxQueueSize }).(pulumi.StringOutput)
}
// Valid values: (tcpout | syslog). Specifies the type of output processor.
func (o OutputsTcpGroupOutput) Method() pulumi.StringOutput {
return o.ApplyT(func(v *OutputsTcpGroup) pulumi.StringOutput { return v.Method }).(pulumi.StringOutput)
}
// The name of the group of receivers.
func (o OutputsTcpGroupOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v *OutputsTcpGroup) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
}
// If true, events are cooked (processed by Splunk software). If false, events are raw and untouched prior to sending. Defaults to true.
// Set to false if you are sending to a third-party system.
func (o OutputsTcpGroupOutput) SendCookedData() pulumi.BoolOutput {
return o.ApplyT(func(v *OutputsTcpGroup) pulumi.BoolOutput { return v.SendCookedData }).(pulumi.BoolOutput)
}
// Comma-separated list of servers to include in the group.
func (o OutputsTcpGroupOutput) Servers() pulumi.StringArrayOutput {
return o.ApplyT(func(v *OutputsTcpGroup) pulumi.StringArrayOutput { return v.Servers }).(pulumi.StringArrayOutput)
}
// Token value generated by the indexer after configuration.
func (o OutputsTcpGroupOutput) Token() pulumi.StringOutput {
return o.ApplyT(func(v *OutputsTcpGroup) pulumi.StringOutput { return v.Token }).(pulumi.StringOutput)
}
type OutputsTcpGroupArrayOutput struct{ *pulumi.OutputState }
func (OutputsTcpGroupArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*OutputsTcpGroup)(nil)).Elem()
}
func (o OutputsTcpGroupArrayOutput) ToOutputsTcpGroupArrayOutput() OutputsTcpGroupArrayOutput {
return o
}
func (o OutputsTcpGroupArrayOutput) ToOutputsTcpGroupArrayOutputWithContext(ctx context.Context) OutputsTcpGroupArrayOutput {
return o
}
func (o OutputsTcpGroupArrayOutput) Index(i pulumi.IntInput) OutputsTcpGroupOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *OutputsTcpGroup {
return vs[0].([]*OutputsTcpGroup)[vs[1].(int)]
}).(OutputsTcpGroupOutput)
}
type OutputsTcpGroupMapOutput struct{ *pulumi.OutputState }
func (OutputsTcpGroupMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*OutputsTcpGroup)(nil)).Elem()
}
func (o OutputsTcpGroupMapOutput) ToOutputsTcpGroupMapOutput() OutputsTcpGroupMapOutput {
return o
}
func (o OutputsTcpGroupMapOutput) ToOutputsTcpGroupMapOutputWithContext(ctx context.Context) OutputsTcpGroupMapOutput {
return o
}
func (o OutputsTcpGroupMapOutput) MapIndex(k pulumi.StringInput) OutputsTcpGroupOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *OutputsTcpGroup {
return vs[0].(map[string]*OutputsTcpGroup)[vs[1].(string)]
}).(OutputsTcpGroupOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*OutputsTcpGroupInput)(nil)).Elem(), &OutputsTcpGroup{})
pulumi.RegisterInputType(reflect.TypeOf((*OutputsTcpGroupArrayInput)(nil)).Elem(), OutputsTcpGroupArray{})
pulumi.RegisterInputType(reflect.TypeOf((*OutputsTcpGroupMapInput)(nil)).Elem(), OutputsTcpGroupMap{})
pulumi.RegisterOutputType(OutputsTcpGroupOutput{})
pulumi.RegisterOutputType(OutputsTcpGroupArrayOutput{})
pulumi.RegisterOutputType(OutputsTcpGroupMapOutput{})
}