generated from pulumi/pulumi-tf-provider-boilerplate
/
outputsTcpServer.go
420 lines (363 loc) · 19 KB
/
outputsTcpServer.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
// 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: OutputsTcpServer
//
// Access data forwarding configurations.
//
// ## 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.NewOutputsTcpServer(ctx, "tcpServer", &splunk.OutputsTcpServerArgs{
// SslAltNameToCheck: pulumi.String("old-host"),
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
// <!--End PulumiCodeChooser -->
type OutputsTcpServer struct {
pulumi.CustomResourceState
// The app/user context that is the namespace for the resource
Acl OutputsTcpServerAclOutput `pulumi:"acl"`
// If true, disables the group.
Disabled pulumi.BoolOutput `pulumi:"disabled"`
// Valid values: (clone | balance | autobalance)
// The data distribution method used when two or more servers exist in the same forwarder group.
Method pulumi.StringOutput `pulumi:"method"`
// <host>:<port> of the Splunk receiver. <host> can be either an ip address or server name. <port> is the that port that the Splunk receiver is listening on.
Name pulumi.StringOutput `pulumi:"name"`
// The alternate name to match in the remote server's SSL certificate.
SslAltNameToCheck pulumi.StringOutput `pulumi:"sslAltNameToCheck"`
// Path to the client certificate. If specified, connection uses SSL.
SslCertPath pulumi.StringOutput `pulumi:"sslCertPath"`
// SSL Cipher in the form ALL:!aNULL:!eNULL:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM
SslCipher pulumi.StringOutput `pulumi:"sslCipher"`
// Check the common name of the server's certificate against this name.
// If there is no match, assume that Splunk Enterprise is not authenticated against this server. You must specify this setting if sslVerifyServerCert is true.
SslCommonNameToCheck pulumi.StringOutput `pulumi:"sslCommonNameToCheck"`
// The password associated with the CAcert.
// The default Splunk Enterprise CAcert uses the password "password."
SslPassword pulumi.StringOutput `pulumi:"sslPassword"`
// The path to the root certificate authority file.
SslRootCaPath pulumi.StringOutput `pulumi:"sslRootCaPath"`
// If true, make sure that the server you are connecting to is a valid one (authenticated). Both the common name and the alternate name of the server are then checked for a match.
SslVerifyServerCert pulumi.BoolOutput `pulumi:"sslVerifyServerCert"`
}
// NewOutputsTcpServer registers a new resource with the given unique name, arguments, and options.
func NewOutputsTcpServer(ctx *pulumi.Context,
name string, args *OutputsTcpServerArgs, opts ...pulumi.ResourceOption) (*OutputsTcpServer, error) {
if args == nil {
args = &OutputsTcpServerArgs{}
}
if args.SslPassword != nil {
args.SslPassword = pulumi.ToSecret(args.SslPassword).(pulumi.StringPtrInput)
}
secrets := pulumi.AdditionalSecretOutputs([]string{
"sslPassword",
})
opts = append(opts, secrets)
opts = internal.PkgResourceDefaultOpts(opts)
var resource OutputsTcpServer
err := ctx.RegisterResource("splunk:index/outputsTcpServer:OutputsTcpServer", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetOutputsTcpServer gets an existing OutputsTcpServer 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 GetOutputsTcpServer(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *OutputsTcpServerState, opts ...pulumi.ResourceOption) (*OutputsTcpServer, error) {
var resource OutputsTcpServer
err := ctx.ReadResource("splunk:index/outputsTcpServer:OutputsTcpServer", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering OutputsTcpServer resources.
type outputsTcpServerState struct {
// The app/user context that is the namespace for the resource
Acl *OutputsTcpServerAcl `pulumi:"acl"`
// If true, disables the group.
Disabled *bool `pulumi:"disabled"`
// Valid values: (clone | balance | autobalance)
// The data distribution method used when two or more servers exist in the same forwarder group.
Method *string `pulumi:"method"`
// <host>:<port> of the Splunk receiver. <host> can be either an ip address or server name. <port> is the that port that the Splunk receiver is listening on.
Name *string `pulumi:"name"`
// The alternate name to match in the remote server's SSL certificate.
SslAltNameToCheck *string `pulumi:"sslAltNameToCheck"`
// Path to the client certificate. If specified, connection uses SSL.
SslCertPath *string `pulumi:"sslCertPath"`
// SSL Cipher in the form ALL:!aNULL:!eNULL:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM
SslCipher *string `pulumi:"sslCipher"`
// Check the common name of the server's certificate against this name.
// If there is no match, assume that Splunk Enterprise is not authenticated against this server. You must specify this setting if sslVerifyServerCert is true.
SslCommonNameToCheck *string `pulumi:"sslCommonNameToCheck"`
// The password associated with the CAcert.
// The default Splunk Enterprise CAcert uses the password "password."
SslPassword *string `pulumi:"sslPassword"`
// The path to the root certificate authority file.
SslRootCaPath *string `pulumi:"sslRootCaPath"`
// If true, make sure that the server you are connecting to is a valid one (authenticated). Both the common name and the alternate name of the server are then checked for a match.
SslVerifyServerCert *bool `pulumi:"sslVerifyServerCert"`
}
type OutputsTcpServerState struct {
// The app/user context that is the namespace for the resource
Acl OutputsTcpServerAclPtrInput
// If true, disables the group.
Disabled pulumi.BoolPtrInput
// Valid values: (clone | balance | autobalance)
// The data distribution method used when two or more servers exist in the same forwarder group.
Method pulumi.StringPtrInput
// <host>:<port> of the Splunk receiver. <host> can be either an ip address or server name. <port> is the that port that the Splunk receiver is listening on.
Name pulumi.StringPtrInput
// The alternate name to match in the remote server's SSL certificate.
SslAltNameToCheck pulumi.StringPtrInput
// Path to the client certificate. If specified, connection uses SSL.
SslCertPath pulumi.StringPtrInput
// SSL Cipher in the form ALL:!aNULL:!eNULL:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM
SslCipher pulumi.StringPtrInput
// Check the common name of the server's certificate against this name.
// If there is no match, assume that Splunk Enterprise is not authenticated against this server. You must specify this setting if sslVerifyServerCert is true.
SslCommonNameToCheck pulumi.StringPtrInput
// The password associated with the CAcert.
// The default Splunk Enterprise CAcert uses the password "password."
SslPassword pulumi.StringPtrInput
// The path to the root certificate authority file.
SslRootCaPath pulumi.StringPtrInput
// If true, make sure that the server you are connecting to is a valid one (authenticated). Both the common name and the alternate name of the server are then checked for a match.
SslVerifyServerCert pulumi.BoolPtrInput
}
func (OutputsTcpServerState) ElementType() reflect.Type {
return reflect.TypeOf((*outputsTcpServerState)(nil)).Elem()
}
type outputsTcpServerArgs struct {
// The app/user context that is the namespace for the resource
Acl *OutputsTcpServerAcl `pulumi:"acl"`
// If true, disables the group.
Disabled *bool `pulumi:"disabled"`
// Valid values: (clone | balance | autobalance)
// The data distribution method used when two or more servers exist in the same forwarder group.
Method *string `pulumi:"method"`
// <host>:<port> of the Splunk receiver. <host> can be either an ip address or server name. <port> is the that port that the Splunk receiver is listening on.
Name *string `pulumi:"name"`
// The alternate name to match in the remote server's SSL certificate.
SslAltNameToCheck *string `pulumi:"sslAltNameToCheck"`
// Path to the client certificate. If specified, connection uses SSL.
SslCertPath *string `pulumi:"sslCertPath"`
// SSL Cipher in the form ALL:!aNULL:!eNULL:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM
SslCipher *string `pulumi:"sslCipher"`
// Check the common name of the server's certificate against this name.
// If there is no match, assume that Splunk Enterprise is not authenticated against this server. You must specify this setting if sslVerifyServerCert is true.
SslCommonNameToCheck *string `pulumi:"sslCommonNameToCheck"`
// The password associated with the CAcert.
// The default Splunk Enterprise CAcert uses the password "password."
SslPassword *string `pulumi:"sslPassword"`
// The path to the root certificate authority file.
SslRootCaPath *string `pulumi:"sslRootCaPath"`
// If true, make sure that the server you are connecting to is a valid one (authenticated). Both the common name and the alternate name of the server are then checked for a match.
SslVerifyServerCert *bool `pulumi:"sslVerifyServerCert"`
}
// The set of arguments for constructing a OutputsTcpServer resource.
type OutputsTcpServerArgs struct {
// The app/user context that is the namespace for the resource
Acl OutputsTcpServerAclPtrInput
// If true, disables the group.
Disabled pulumi.BoolPtrInput
// Valid values: (clone | balance | autobalance)
// The data distribution method used when two or more servers exist in the same forwarder group.
Method pulumi.StringPtrInput
// <host>:<port> of the Splunk receiver. <host> can be either an ip address or server name. <port> is the that port that the Splunk receiver is listening on.
Name pulumi.StringPtrInput
// The alternate name to match in the remote server's SSL certificate.
SslAltNameToCheck pulumi.StringPtrInput
// Path to the client certificate. If specified, connection uses SSL.
SslCertPath pulumi.StringPtrInput
// SSL Cipher in the form ALL:!aNULL:!eNULL:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM
SslCipher pulumi.StringPtrInput
// Check the common name of the server's certificate against this name.
// If there is no match, assume that Splunk Enterprise is not authenticated against this server. You must specify this setting if sslVerifyServerCert is true.
SslCommonNameToCheck pulumi.StringPtrInput
// The password associated with the CAcert.
// The default Splunk Enterprise CAcert uses the password "password."
SslPassword pulumi.StringPtrInput
// The path to the root certificate authority file.
SslRootCaPath pulumi.StringPtrInput
// If true, make sure that the server you are connecting to is a valid one (authenticated). Both the common name and the alternate name of the server are then checked for a match.
SslVerifyServerCert pulumi.BoolPtrInput
}
func (OutputsTcpServerArgs) ElementType() reflect.Type {
return reflect.TypeOf((*outputsTcpServerArgs)(nil)).Elem()
}
type OutputsTcpServerInput interface {
pulumi.Input
ToOutputsTcpServerOutput() OutputsTcpServerOutput
ToOutputsTcpServerOutputWithContext(ctx context.Context) OutputsTcpServerOutput
}
func (*OutputsTcpServer) ElementType() reflect.Type {
return reflect.TypeOf((**OutputsTcpServer)(nil)).Elem()
}
func (i *OutputsTcpServer) ToOutputsTcpServerOutput() OutputsTcpServerOutput {
return i.ToOutputsTcpServerOutputWithContext(context.Background())
}
func (i *OutputsTcpServer) ToOutputsTcpServerOutputWithContext(ctx context.Context) OutputsTcpServerOutput {
return pulumi.ToOutputWithContext(ctx, i).(OutputsTcpServerOutput)
}
// OutputsTcpServerArrayInput is an input type that accepts OutputsTcpServerArray and OutputsTcpServerArrayOutput values.
// You can construct a concrete instance of `OutputsTcpServerArrayInput` via:
//
// OutputsTcpServerArray{ OutputsTcpServerArgs{...} }
type OutputsTcpServerArrayInput interface {
pulumi.Input
ToOutputsTcpServerArrayOutput() OutputsTcpServerArrayOutput
ToOutputsTcpServerArrayOutputWithContext(context.Context) OutputsTcpServerArrayOutput
}
type OutputsTcpServerArray []OutputsTcpServerInput
func (OutputsTcpServerArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*OutputsTcpServer)(nil)).Elem()
}
func (i OutputsTcpServerArray) ToOutputsTcpServerArrayOutput() OutputsTcpServerArrayOutput {
return i.ToOutputsTcpServerArrayOutputWithContext(context.Background())
}
func (i OutputsTcpServerArray) ToOutputsTcpServerArrayOutputWithContext(ctx context.Context) OutputsTcpServerArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(OutputsTcpServerArrayOutput)
}
// OutputsTcpServerMapInput is an input type that accepts OutputsTcpServerMap and OutputsTcpServerMapOutput values.
// You can construct a concrete instance of `OutputsTcpServerMapInput` via:
//
// OutputsTcpServerMap{ "key": OutputsTcpServerArgs{...} }
type OutputsTcpServerMapInput interface {
pulumi.Input
ToOutputsTcpServerMapOutput() OutputsTcpServerMapOutput
ToOutputsTcpServerMapOutputWithContext(context.Context) OutputsTcpServerMapOutput
}
type OutputsTcpServerMap map[string]OutputsTcpServerInput
func (OutputsTcpServerMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*OutputsTcpServer)(nil)).Elem()
}
func (i OutputsTcpServerMap) ToOutputsTcpServerMapOutput() OutputsTcpServerMapOutput {
return i.ToOutputsTcpServerMapOutputWithContext(context.Background())
}
func (i OutputsTcpServerMap) ToOutputsTcpServerMapOutputWithContext(ctx context.Context) OutputsTcpServerMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(OutputsTcpServerMapOutput)
}
type OutputsTcpServerOutput struct{ *pulumi.OutputState }
func (OutputsTcpServerOutput) ElementType() reflect.Type {
return reflect.TypeOf((**OutputsTcpServer)(nil)).Elem()
}
func (o OutputsTcpServerOutput) ToOutputsTcpServerOutput() OutputsTcpServerOutput {
return o
}
func (o OutputsTcpServerOutput) ToOutputsTcpServerOutputWithContext(ctx context.Context) OutputsTcpServerOutput {
return o
}
// The app/user context that is the namespace for the resource
func (o OutputsTcpServerOutput) Acl() OutputsTcpServerAclOutput {
return o.ApplyT(func(v *OutputsTcpServer) OutputsTcpServerAclOutput { return v.Acl }).(OutputsTcpServerAclOutput)
}
// If true, disables the group.
func (o OutputsTcpServerOutput) Disabled() pulumi.BoolOutput {
return o.ApplyT(func(v *OutputsTcpServer) pulumi.BoolOutput { return v.Disabled }).(pulumi.BoolOutput)
}
// Valid values: (clone | balance | autobalance)
// The data distribution method used when two or more servers exist in the same forwarder group.
func (o OutputsTcpServerOutput) Method() pulumi.StringOutput {
return o.ApplyT(func(v *OutputsTcpServer) pulumi.StringOutput { return v.Method }).(pulumi.StringOutput)
}
// <host>:<port> of the Splunk receiver. <host> can be either an ip address or server name. <port> is the that port that the Splunk receiver is listening on.
func (o OutputsTcpServerOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v *OutputsTcpServer) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
}
// The alternate name to match in the remote server's SSL certificate.
func (o OutputsTcpServerOutput) SslAltNameToCheck() pulumi.StringOutput {
return o.ApplyT(func(v *OutputsTcpServer) pulumi.StringOutput { return v.SslAltNameToCheck }).(pulumi.StringOutput)
}
// Path to the client certificate. If specified, connection uses SSL.
func (o OutputsTcpServerOutput) SslCertPath() pulumi.StringOutput {
return o.ApplyT(func(v *OutputsTcpServer) pulumi.StringOutput { return v.SslCertPath }).(pulumi.StringOutput)
}
// SSL Cipher in the form ALL:!aNULL:!eNULL:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM
func (o OutputsTcpServerOutput) SslCipher() pulumi.StringOutput {
return o.ApplyT(func(v *OutputsTcpServer) pulumi.StringOutput { return v.SslCipher }).(pulumi.StringOutput)
}
// Check the common name of the server's certificate against this name.
// If there is no match, assume that Splunk Enterprise is not authenticated against this server. You must specify this setting if sslVerifyServerCert is true.
func (o OutputsTcpServerOutput) SslCommonNameToCheck() pulumi.StringOutput {
return o.ApplyT(func(v *OutputsTcpServer) pulumi.StringOutput { return v.SslCommonNameToCheck }).(pulumi.StringOutput)
}
// The password associated with the CAcert.
// The default Splunk Enterprise CAcert uses the password "password."
func (o OutputsTcpServerOutput) SslPassword() pulumi.StringOutput {
return o.ApplyT(func(v *OutputsTcpServer) pulumi.StringOutput { return v.SslPassword }).(pulumi.StringOutput)
}
// The path to the root certificate authority file.
func (o OutputsTcpServerOutput) SslRootCaPath() pulumi.StringOutput {
return o.ApplyT(func(v *OutputsTcpServer) pulumi.StringOutput { return v.SslRootCaPath }).(pulumi.StringOutput)
}
// If true, make sure that the server you are connecting to is a valid one (authenticated). Both the common name and the alternate name of the server are then checked for a match.
func (o OutputsTcpServerOutput) SslVerifyServerCert() pulumi.BoolOutput {
return o.ApplyT(func(v *OutputsTcpServer) pulumi.BoolOutput { return v.SslVerifyServerCert }).(pulumi.BoolOutput)
}
type OutputsTcpServerArrayOutput struct{ *pulumi.OutputState }
func (OutputsTcpServerArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*OutputsTcpServer)(nil)).Elem()
}
func (o OutputsTcpServerArrayOutput) ToOutputsTcpServerArrayOutput() OutputsTcpServerArrayOutput {
return o
}
func (o OutputsTcpServerArrayOutput) ToOutputsTcpServerArrayOutputWithContext(ctx context.Context) OutputsTcpServerArrayOutput {
return o
}
func (o OutputsTcpServerArrayOutput) Index(i pulumi.IntInput) OutputsTcpServerOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *OutputsTcpServer {
return vs[0].([]*OutputsTcpServer)[vs[1].(int)]
}).(OutputsTcpServerOutput)
}
type OutputsTcpServerMapOutput struct{ *pulumi.OutputState }
func (OutputsTcpServerMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*OutputsTcpServer)(nil)).Elem()
}
func (o OutputsTcpServerMapOutput) ToOutputsTcpServerMapOutput() OutputsTcpServerMapOutput {
return o
}
func (o OutputsTcpServerMapOutput) ToOutputsTcpServerMapOutputWithContext(ctx context.Context) OutputsTcpServerMapOutput {
return o
}
func (o OutputsTcpServerMapOutput) MapIndex(k pulumi.StringInput) OutputsTcpServerOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *OutputsTcpServer {
return vs[0].(map[string]*OutputsTcpServer)[vs[1].(string)]
}).(OutputsTcpServerOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*OutputsTcpServerInput)(nil)).Elem(), &OutputsTcpServer{})
pulumi.RegisterInputType(reflect.TypeOf((*OutputsTcpServerArrayInput)(nil)).Elem(), OutputsTcpServerArray{})
pulumi.RegisterInputType(reflect.TypeOf((*OutputsTcpServerMapInput)(nil)).Elem(), OutputsTcpServerMap{})
pulumi.RegisterOutputType(OutputsTcpServerOutput{})
pulumi.RegisterOutputType(OutputsTcpServerArrayOutput{})
pulumi.RegisterOutputType(OutputsTcpServerMapOutput{})
}