generated from pulumi/pulumi-tf-provider-boilerplate
/
globalHttpEventCollector.go
343 lines (290 loc) · 18.6 KB
/
globalHttpEventCollector.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
// 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"
"github.com/pulumi/pulumi-splunk/sdk/go/splunk/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// ## # Resource: GlobalHttpEventCollector
//
// Update Global HTTP Event Collector input configuration.
//
// ## 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.NewGlobalHttpEventCollector(ctx, "http", &splunk.GlobalHttpEventCollectorArgs{
// Disabled: pulumi.Bool(false),
// EnableSsl: pulumi.Bool(true),
// Port: pulumi.Int(8088),
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
// <!--End PulumiCodeChooser -->
type GlobalHttpEventCollector struct {
pulumi.CustomResourceState
// Number of threads used by HTTP Input server.
DedicatedIoThreads pulumi.IntOutput `pulumi:"dedicatedIoThreads"`
// Input disabled indicator.
Disabled pulumi.BoolOutput `pulumi:"disabled"`
// Enable SSL protocol for HTTP data input. `true` = SSL enabled, `false` = SSL disabled.
EnableSsl pulumi.BoolOutput `pulumi:"enableSsl"`
// Maximum number of simultaneous HTTP connections accepted. Adjusting this value may cause server performance issues and is not generally recommended. Possible values for this setting vary by OS.
MaxSockets pulumi.IntOutput `pulumi:"maxSockets"`
// Maximum number of threads that can be used by active HTTP transactions. Adjusting this value may cause server performance issues and is not generally recommended. Possible values for this setting vary by OS.
MaxThreads pulumi.IntOutput `pulumi:"maxThreads"`
// HTTP data input IP port.
Port pulumi.IntOutput `pulumi:"port"`
// Indicates whether the event collector input writes its configuration to a deployment server repository. When this setting is set to 1 (enabled), the input writes its configuration to the directory specified as repositoryLocation in serverclass.conf.
// Copy the full contents of the splunkHttpinput app directory to this directory for the configuration to work. When enabled, only the tokens defined in the splunkHttpinput app in this repository are viewable and editable on the API and the Data Inputs page in Splunk Web. When disabled, the input writes its configuration to $SPLUNK_HOME/etc/apps by default. Defaults to 0 (disabled).
UseDeploymentServer pulumi.IntOutput `pulumi:"useDeploymentServer"`
}
// NewGlobalHttpEventCollector registers a new resource with the given unique name, arguments, and options.
func NewGlobalHttpEventCollector(ctx *pulumi.Context,
name string, args *GlobalHttpEventCollectorArgs, opts ...pulumi.ResourceOption) (*GlobalHttpEventCollector, error) {
if args == nil {
args = &GlobalHttpEventCollectorArgs{}
}
opts = internal.PkgResourceDefaultOpts(opts)
var resource GlobalHttpEventCollector
err := ctx.RegisterResource("splunk:index/globalHttpEventCollector:GlobalHttpEventCollector", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetGlobalHttpEventCollector gets an existing GlobalHttpEventCollector 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 GetGlobalHttpEventCollector(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *GlobalHttpEventCollectorState, opts ...pulumi.ResourceOption) (*GlobalHttpEventCollector, error) {
var resource GlobalHttpEventCollector
err := ctx.ReadResource("splunk:index/globalHttpEventCollector:GlobalHttpEventCollector", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering GlobalHttpEventCollector resources.
type globalHttpEventCollectorState struct {
// Number of threads used by HTTP Input server.
DedicatedIoThreads *int `pulumi:"dedicatedIoThreads"`
// Input disabled indicator.
Disabled *bool `pulumi:"disabled"`
// Enable SSL protocol for HTTP data input. `true` = SSL enabled, `false` = SSL disabled.
EnableSsl *bool `pulumi:"enableSsl"`
// Maximum number of simultaneous HTTP connections accepted. Adjusting this value may cause server performance issues and is not generally recommended. Possible values for this setting vary by OS.
MaxSockets *int `pulumi:"maxSockets"`
// Maximum number of threads that can be used by active HTTP transactions. Adjusting this value may cause server performance issues and is not generally recommended. Possible values for this setting vary by OS.
MaxThreads *int `pulumi:"maxThreads"`
// HTTP data input IP port.
Port *int `pulumi:"port"`
// Indicates whether the event collector input writes its configuration to a deployment server repository. When this setting is set to 1 (enabled), the input writes its configuration to the directory specified as repositoryLocation in serverclass.conf.
// Copy the full contents of the splunkHttpinput app directory to this directory for the configuration to work. When enabled, only the tokens defined in the splunkHttpinput app in this repository are viewable and editable on the API and the Data Inputs page in Splunk Web. When disabled, the input writes its configuration to $SPLUNK_HOME/etc/apps by default. Defaults to 0 (disabled).
UseDeploymentServer *int `pulumi:"useDeploymentServer"`
}
type GlobalHttpEventCollectorState struct {
// Number of threads used by HTTP Input server.
DedicatedIoThreads pulumi.IntPtrInput
// Input disabled indicator.
Disabled pulumi.BoolPtrInput
// Enable SSL protocol for HTTP data input. `true` = SSL enabled, `false` = SSL disabled.
EnableSsl pulumi.BoolPtrInput
// Maximum number of simultaneous HTTP connections accepted. Adjusting this value may cause server performance issues and is not generally recommended. Possible values for this setting vary by OS.
MaxSockets pulumi.IntPtrInput
// Maximum number of threads that can be used by active HTTP transactions. Adjusting this value may cause server performance issues and is not generally recommended. Possible values for this setting vary by OS.
MaxThreads pulumi.IntPtrInput
// HTTP data input IP port.
Port pulumi.IntPtrInput
// Indicates whether the event collector input writes its configuration to a deployment server repository. When this setting is set to 1 (enabled), the input writes its configuration to the directory specified as repositoryLocation in serverclass.conf.
// Copy the full contents of the splunkHttpinput app directory to this directory for the configuration to work. When enabled, only the tokens defined in the splunkHttpinput app in this repository are viewable and editable on the API and the Data Inputs page in Splunk Web. When disabled, the input writes its configuration to $SPLUNK_HOME/etc/apps by default. Defaults to 0 (disabled).
UseDeploymentServer pulumi.IntPtrInput
}
func (GlobalHttpEventCollectorState) ElementType() reflect.Type {
return reflect.TypeOf((*globalHttpEventCollectorState)(nil)).Elem()
}
type globalHttpEventCollectorArgs struct {
// Number of threads used by HTTP Input server.
DedicatedIoThreads *int `pulumi:"dedicatedIoThreads"`
// Input disabled indicator.
Disabled *bool `pulumi:"disabled"`
// Enable SSL protocol for HTTP data input. `true` = SSL enabled, `false` = SSL disabled.
EnableSsl *bool `pulumi:"enableSsl"`
// Maximum number of simultaneous HTTP connections accepted. Adjusting this value may cause server performance issues and is not generally recommended. Possible values for this setting vary by OS.
MaxSockets *int `pulumi:"maxSockets"`
// Maximum number of threads that can be used by active HTTP transactions. Adjusting this value may cause server performance issues and is not generally recommended. Possible values for this setting vary by OS.
MaxThreads *int `pulumi:"maxThreads"`
// HTTP data input IP port.
Port *int `pulumi:"port"`
// Indicates whether the event collector input writes its configuration to a deployment server repository. When this setting is set to 1 (enabled), the input writes its configuration to the directory specified as repositoryLocation in serverclass.conf.
// Copy the full contents of the splunkHttpinput app directory to this directory for the configuration to work. When enabled, only the tokens defined in the splunkHttpinput app in this repository are viewable and editable on the API and the Data Inputs page in Splunk Web. When disabled, the input writes its configuration to $SPLUNK_HOME/etc/apps by default. Defaults to 0 (disabled).
UseDeploymentServer *int `pulumi:"useDeploymentServer"`
}
// The set of arguments for constructing a GlobalHttpEventCollector resource.
type GlobalHttpEventCollectorArgs struct {
// Number of threads used by HTTP Input server.
DedicatedIoThreads pulumi.IntPtrInput
// Input disabled indicator.
Disabled pulumi.BoolPtrInput
// Enable SSL protocol for HTTP data input. `true` = SSL enabled, `false` = SSL disabled.
EnableSsl pulumi.BoolPtrInput
// Maximum number of simultaneous HTTP connections accepted. Adjusting this value may cause server performance issues and is not generally recommended. Possible values for this setting vary by OS.
MaxSockets pulumi.IntPtrInput
// Maximum number of threads that can be used by active HTTP transactions. Adjusting this value may cause server performance issues and is not generally recommended. Possible values for this setting vary by OS.
MaxThreads pulumi.IntPtrInput
// HTTP data input IP port.
Port pulumi.IntPtrInput
// Indicates whether the event collector input writes its configuration to a deployment server repository. When this setting is set to 1 (enabled), the input writes its configuration to the directory specified as repositoryLocation in serverclass.conf.
// Copy the full contents of the splunkHttpinput app directory to this directory for the configuration to work. When enabled, only the tokens defined in the splunkHttpinput app in this repository are viewable and editable on the API and the Data Inputs page in Splunk Web. When disabled, the input writes its configuration to $SPLUNK_HOME/etc/apps by default. Defaults to 0 (disabled).
UseDeploymentServer pulumi.IntPtrInput
}
func (GlobalHttpEventCollectorArgs) ElementType() reflect.Type {
return reflect.TypeOf((*globalHttpEventCollectorArgs)(nil)).Elem()
}
type GlobalHttpEventCollectorInput interface {
pulumi.Input
ToGlobalHttpEventCollectorOutput() GlobalHttpEventCollectorOutput
ToGlobalHttpEventCollectorOutputWithContext(ctx context.Context) GlobalHttpEventCollectorOutput
}
func (*GlobalHttpEventCollector) ElementType() reflect.Type {
return reflect.TypeOf((**GlobalHttpEventCollector)(nil)).Elem()
}
func (i *GlobalHttpEventCollector) ToGlobalHttpEventCollectorOutput() GlobalHttpEventCollectorOutput {
return i.ToGlobalHttpEventCollectorOutputWithContext(context.Background())
}
func (i *GlobalHttpEventCollector) ToGlobalHttpEventCollectorOutputWithContext(ctx context.Context) GlobalHttpEventCollectorOutput {
return pulumi.ToOutputWithContext(ctx, i).(GlobalHttpEventCollectorOutput)
}
// GlobalHttpEventCollectorArrayInput is an input type that accepts GlobalHttpEventCollectorArray and GlobalHttpEventCollectorArrayOutput values.
// You can construct a concrete instance of `GlobalHttpEventCollectorArrayInput` via:
//
// GlobalHttpEventCollectorArray{ GlobalHttpEventCollectorArgs{...} }
type GlobalHttpEventCollectorArrayInput interface {
pulumi.Input
ToGlobalHttpEventCollectorArrayOutput() GlobalHttpEventCollectorArrayOutput
ToGlobalHttpEventCollectorArrayOutputWithContext(context.Context) GlobalHttpEventCollectorArrayOutput
}
type GlobalHttpEventCollectorArray []GlobalHttpEventCollectorInput
func (GlobalHttpEventCollectorArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*GlobalHttpEventCollector)(nil)).Elem()
}
func (i GlobalHttpEventCollectorArray) ToGlobalHttpEventCollectorArrayOutput() GlobalHttpEventCollectorArrayOutput {
return i.ToGlobalHttpEventCollectorArrayOutputWithContext(context.Background())
}
func (i GlobalHttpEventCollectorArray) ToGlobalHttpEventCollectorArrayOutputWithContext(ctx context.Context) GlobalHttpEventCollectorArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(GlobalHttpEventCollectorArrayOutput)
}
// GlobalHttpEventCollectorMapInput is an input type that accepts GlobalHttpEventCollectorMap and GlobalHttpEventCollectorMapOutput values.
// You can construct a concrete instance of `GlobalHttpEventCollectorMapInput` via:
//
// GlobalHttpEventCollectorMap{ "key": GlobalHttpEventCollectorArgs{...} }
type GlobalHttpEventCollectorMapInput interface {
pulumi.Input
ToGlobalHttpEventCollectorMapOutput() GlobalHttpEventCollectorMapOutput
ToGlobalHttpEventCollectorMapOutputWithContext(context.Context) GlobalHttpEventCollectorMapOutput
}
type GlobalHttpEventCollectorMap map[string]GlobalHttpEventCollectorInput
func (GlobalHttpEventCollectorMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*GlobalHttpEventCollector)(nil)).Elem()
}
func (i GlobalHttpEventCollectorMap) ToGlobalHttpEventCollectorMapOutput() GlobalHttpEventCollectorMapOutput {
return i.ToGlobalHttpEventCollectorMapOutputWithContext(context.Background())
}
func (i GlobalHttpEventCollectorMap) ToGlobalHttpEventCollectorMapOutputWithContext(ctx context.Context) GlobalHttpEventCollectorMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(GlobalHttpEventCollectorMapOutput)
}
type GlobalHttpEventCollectorOutput struct{ *pulumi.OutputState }
func (GlobalHttpEventCollectorOutput) ElementType() reflect.Type {
return reflect.TypeOf((**GlobalHttpEventCollector)(nil)).Elem()
}
func (o GlobalHttpEventCollectorOutput) ToGlobalHttpEventCollectorOutput() GlobalHttpEventCollectorOutput {
return o
}
func (o GlobalHttpEventCollectorOutput) ToGlobalHttpEventCollectorOutputWithContext(ctx context.Context) GlobalHttpEventCollectorOutput {
return o
}
// Number of threads used by HTTP Input server.
func (o GlobalHttpEventCollectorOutput) DedicatedIoThreads() pulumi.IntOutput {
return o.ApplyT(func(v *GlobalHttpEventCollector) pulumi.IntOutput { return v.DedicatedIoThreads }).(pulumi.IntOutput)
}
// Input disabled indicator.
func (o GlobalHttpEventCollectorOutput) Disabled() pulumi.BoolOutput {
return o.ApplyT(func(v *GlobalHttpEventCollector) pulumi.BoolOutput { return v.Disabled }).(pulumi.BoolOutput)
}
// Enable SSL protocol for HTTP data input. `true` = SSL enabled, `false` = SSL disabled.
func (o GlobalHttpEventCollectorOutput) EnableSsl() pulumi.BoolOutput {
return o.ApplyT(func(v *GlobalHttpEventCollector) pulumi.BoolOutput { return v.EnableSsl }).(pulumi.BoolOutput)
}
// Maximum number of simultaneous HTTP connections accepted. Adjusting this value may cause server performance issues and is not generally recommended. Possible values for this setting vary by OS.
func (o GlobalHttpEventCollectorOutput) MaxSockets() pulumi.IntOutput {
return o.ApplyT(func(v *GlobalHttpEventCollector) pulumi.IntOutput { return v.MaxSockets }).(pulumi.IntOutput)
}
// Maximum number of threads that can be used by active HTTP transactions. Adjusting this value may cause server performance issues and is not generally recommended. Possible values for this setting vary by OS.
func (o GlobalHttpEventCollectorOutput) MaxThreads() pulumi.IntOutput {
return o.ApplyT(func(v *GlobalHttpEventCollector) pulumi.IntOutput { return v.MaxThreads }).(pulumi.IntOutput)
}
// HTTP data input IP port.
func (o GlobalHttpEventCollectorOutput) Port() pulumi.IntOutput {
return o.ApplyT(func(v *GlobalHttpEventCollector) pulumi.IntOutput { return v.Port }).(pulumi.IntOutput)
}
// Indicates whether the event collector input writes its configuration to a deployment server repository. When this setting is set to 1 (enabled), the input writes its configuration to the directory specified as repositoryLocation in serverclass.conf.
// Copy the full contents of the splunkHttpinput app directory to this directory for the configuration to work. When enabled, only the tokens defined in the splunkHttpinput app in this repository are viewable and editable on the API and the Data Inputs page in Splunk Web. When disabled, the input writes its configuration to $SPLUNK_HOME/etc/apps by default. Defaults to 0 (disabled).
func (o GlobalHttpEventCollectorOutput) UseDeploymentServer() pulumi.IntOutput {
return o.ApplyT(func(v *GlobalHttpEventCollector) pulumi.IntOutput { return v.UseDeploymentServer }).(pulumi.IntOutput)
}
type GlobalHttpEventCollectorArrayOutput struct{ *pulumi.OutputState }
func (GlobalHttpEventCollectorArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*GlobalHttpEventCollector)(nil)).Elem()
}
func (o GlobalHttpEventCollectorArrayOutput) ToGlobalHttpEventCollectorArrayOutput() GlobalHttpEventCollectorArrayOutput {
return o
}
func (o GlobalHttpEventCollectorArrayOutput) ToGlobalHttpEventCollectorArrayOutputWithContext(ctx context.Context) GlobalHttpEventCollectorArrayOutput {
return o
}
func (o GlobalHttpEventCollectorArrayOutput) Index(i pulumi.IntInput) GlobalHttpEventCollectorOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *GlobalHttpEventCollector {
return vs[0].([]*GlobalHttpEventCollector)[vs[1].(int)]
}).(GlobalHttpEventCollectorOutput)
}
type GlobalHttpEventCollectorMapOutput struct{ *pulumi.OutputState }
func (GlobalHttpEventCollectorMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*GlobalHttpEventCollector)(nil)).Elem()
}
func (o GlobalHttpEventCollectorMapOutput) ToGlobalHttpEventCollectorMapOutput() GlobalHttpEventCollectorMapOutput {
return o
}
func (o GlobalHttpEventCollectorMapOutput) ToGlobalHttpEventCollectorMapOutputWithContext(ctx context.Context) GlobalHttpEventCollectorMapOutput {
return o
}
func (o GlobalHttpEventCollectorMapOutput) MapIndex(k pulumi.StringInput) GlobalHttpEventCollectorOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *GlobalHttpEventCollector {
return vs[0].(map[string]*GlobalHttpEventCollector)[vs[1].(string)]
}).(GlobalHttpEventCollectorOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*GlobalHttpEventCollectorInput)(nil)).Elem(), &GlobalHttpEventCollector{})
pulumi.RegisterInputType(reflect.TypeOf((*GlobalHttpEventCollectorArrayInput)(nil)).Elem(), GlobalHttpEventCollectorArray{})
pulumi.RegisterInputType(reflect.TypeOf((*GlobalHttpEventCollectorMapInput)(nil)).Elem(), GlobalHttpEventCollectorMap{})
pulumi.RegisterOutputType(GlobalHttpEventCollectorOutput{})
pulumi.RegisterOutputType(GlobalHttpEventCollectorArrayOutput{})
pulumi.RegisterOutputType(GlobalHttpEventCollectorMapOutput{})
}