generated from pulumi/pulumi-tf-provider-boilerplate
/
projectLogging.go
448 lines (388 loc) · 21.4 KB
/
projectLogging.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
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package rancher2
import (
"context"
"reflect"
"github.com/pkg/errors"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
// Provides a Rancher v2 Project Logging resource. This can be used to create Project Logging for Rancher v2 environments and retrieve their information.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
// "github.com/pulumi/pulumi-rancher2/sdk/v2/go/rancher2"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// _, err := rancher2.NewProjectLogging(ctx, "foo", &rancher2.ProjectLoggingArgs{
// Kind: pulumi.String("syslog"),
// ProjectId: pulumi.String("<project_id>"),
// SyslogConfig: &rancher2.ProjectLoggingSyslogConfigArgs{
// Endpoint: pulumi.String("<syslog_endpoint>"),
// Protocol: pulumi.String("udp"),
// Severity: pulumi.String("notice"),
// SslVerify: pulumi.Bool(false),
// },
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
// ```
//
// ## Import
//
// Project Logging can be imported using the Rancher Project Logging ID
//
// ```sh
// $ pulumi import rancher2:index/projectLogging:ProjectLogging foo <project_logging_id>
// ```
type ProjectLogging struct {
pulumi.CustomResourceState
// Annotations for Project Logging object (map)
Annotations pulumi.MapOutput `pulumi:"annotations"`
// The custom target config for Cluster Logging. For `kind = custom`. Conflicts with `elasticsearchConfig`, `fluentdConfig`, `kafkaConfig`, `splunkConfig` and `syslogConfig` (list maxitems:1)
CustomTargetConfig ProjectLoggingCustomTargetConfigPtrOutput `pulumi:"customTargetConfig"`
// The elasticsearch config for Project Logging. For `kind = elasticsearch`. Conflicts with `customTargetConfig`, `fluentdConfig`, `kafkaConfig`, `splunkConfig` and `syslogConfig` (list maxitems:1)
ElasticsearchConfig ProjectLoggingElasticsearchConfigPtrOutput `pulumi:"elasticsearchConfig"`
// Enable json log parsing. Default: `false` (bool)
EnableJsonParsing pulumi.BoolPtrOutput `pulumi:"enableJsonParsing"`
// The fluentd config for Project Logging. For `kind = fluentd`. Conflicts with `customTargetConfig`, `elasticsearchConfig`, `kafkaConfig`, `splunkConfig` and `syslogConfig` (list maxitems:1)
FluentdConfig ProjectLoggingFluentdConfigPtrOutput `pulumi:"fluentdConfig"`
// The kafka config for Project Logging. For `kind = kafka`. Conflicts with `customTargetConfig`, `elasticsearchConfig`, `fluentdConfig`, `splunkConfig` and `syslogConfig` (list maxitems:1)
KafkaConfig ProjectLoggingKafkaConfigPtrOutput `pulumi:"kafkaConfig"`
// The kind of the Project Logging. `elasticsearch`, `fluentd`, `kafka`, `splunk` and `syslog` are supported (string)
Kind pulumi.StringOutput `pulumi:"kind"`
// Labels for Project Logging object (map)
Labels pulumi.MapOutput `pulumi:"labels"`
// The name of the Project Logging config (string)
Name pulumi.StringOutput `pulumi:"name"`
// The namespace id from Project logging (string)
NamespaceId pulumi.StringPtrOutput `pulumi:"namespaceId"`
// How often buffered logs would be flushed. Default: `3` seconds (int)
OutputFlushInterval pulumi.IntPtrOutput `pulumi:"outputFlushInterval"`
// The output tags for Project Logging (map)
OutputTags pulumi.MapOutput `pulumi:"outputTags"`
// The project id to configure logging (string)
ProjectId pulumi.StringOutput `pulumi:"projectId"`
// The splunk config for Project Logging. For `kind = splunk`. Conflicts with `customTargetConfig`, `elasticsearchConfig`, `fluentdConfig`, `kafkaConfig`, and `syslogConfig` (list maxitems:1)
SplunkConfig ProjectLoggingSplunkConfigPtrOutput `pulumi:"splunkConfig"`
// The syslog config for Project Logging. For `kind = syslog`. Conflicts with `customTargetConfig`, `elasticsearchConfig`, `fluentdConfig`, `kafkaConfig`, and `splunkConfig` (list maxitems:1)
SyslogConfig ProjectLoggingSyslogConfigPtrOutput `pulumi:"syslogConfig"`
}
// NewProjectLogging registers a new resource with the given unique name, arguments, and options.
func NewProjectLogging(ctx *pulumi.Context,
name string, args *ProjectLoggingArgs, opts ...pulumi.ResourceOption) (*ProjectLogging, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.Kind == nil {
return nil, errors.New("invalid value for required argument 'Kind'")
}
if args.ProjectId == nil {
return nil, errors.New("invalid value for required argument 'ProjectId'")
}
var resource ProjectLogging
err := ctx.RegisterResource("rancher2:index/projectLogging:ProjectLogging", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetProjectLogging gets an existing ProjectLogging 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 GetProjectLogging(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *ProjectLoggingState, opts ...pulumi.ResourceOption) (*ProjectLogging, error) {
var resource ProjectLogging
err := ctx.ReadResource("rancher2:index/projectLogging:ProjectLogging", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering ProjectLogging resources.
type projectLoggingState struct {
// Annotations for Project Logging object (map)
Annotations map[string]interface{} `pulumi:"annotations"`
// The custom target config for Cluster Logging. For `kind = custom`. Conflicts with `elasticsearchConfig`, `fluentdConfig`, `kafkaConfig`, `splunkConfig` and `syslogConfig` (list maxitems:1)
CustomTargetConfig *ProjectLoggingCustomTargetConfig `pulumi:"customTargetConfig"`
// The elasticsearch config for Project Logging. For `kind = elasticsearch`. Conflicts with `customTargetConfig`, `fluentdConfig`, `kafkaConfig`, `splunkConfig` and `syslogConfig` (list maxitems:1)
ElasticsearchConfig *ProjectLoggingElasticsearchConfig `pulumi:"elasticsearchConfig"`
// Enable json log parsing. Default: `false` (bool)
EnableJsonParsing *bool `pulumi:"enableJsonParsing"`
// The fluentd config for Project Logging. For `kind = fluentd`. Conflicts with `customTargetConfig`, `elasticsearchConfig`, `kafkaConfig`, `splunkConfig` and `syslogConfig` (list maxitems:1)
FluentdConfig *ProjectLoggingFluentdConfig `pulumi:"fluentdConfig"`
// The kafka config for Project Logging. For `kind = kafka`. Conflicts with `customTargetConfig`, `elasticsearchConfig`, `fluentdConfig`, `splunkConfig` and `syslogConfig` (list maxitems:1)
KafkaConfig *ProjectLoggingKafkaConfig `pulumi:"kafkaConfig"`
// The kind of the Project Logging. `elasticsearch`, `fluentd`, `kafka`, `splunk` and `syslog` are supported (string)
Kind *string `pulumi:"kind"`
// Labels for Project Logging object (map)
Labels map[string]interface{} `pulumi:"labels"`
// The name of the Project Logging config (string)
Name *string `pulumi:"name"`
// The namespace id from Project logging (string)
NamespaceId *string `pulumi:"namespaceId"`
// How often buffered logs would be flushed. Default: `3` seconds (int)
OutputFlushInterval *int `pulumi:"outputFlushInterval"`
// The output tags for Project Logging (map)
OutputTags map[string]interface{} `pulumi:"outputTags"`
// The project id to configure logging (string)
ProjectId *string `pulumi:"projectId"`
// The splunk config for Project Logging. For `kind = splunk`. Conflicts with `customTargetConfig`, `elasticsearchConfig`, `fluentdConfig`, `kafkaConfig`, and `syslogConfig` (list maxitems:1)
SplunkConfig *ProjectLoggingSplunkConfig `pulumi:"splunkConfig"`
// The syslog config for Project Logging. For `kind = syslog`. Conflicts with `customTargetConfig`, `elasticsearchConfig`, `fluentdConfig`, `kafkaConfig`, and `splunkConfig` (list maxitems:1)
SyslogConfig *ProjectLoggingSyslogConfig `pulumi:"syslogConfig"`
}
type ProjectLoggingState struct {
// Annotations for Project Logging object (map)
Annotations pulumi.MapInput
// The custom target config for Cluster Logging. For `kind = custom`. Conflicts with `elasticsearchConfig`, `fluentdConfig`, `kafkaConfig`, `splunkConfig` and `syslogConfig` (list maxitems:1)
CustomTargetConfig ProjectLoggingCustomTargetConfigPtrInput
// The elasticsearch config for Project Logging. For `kind = elasticsearch`. Conflicts with `customTargetConfig`, `fluentdConfig`, `kafkaConfig`, `splunkConfig` and `syslogConfig` (list maxitems:1)
ElasticsearchConfig ProjectLoggingElasticsearchConfigPtrInput
// Enable json log parsing. Default: `false` (bool)
EnableJsonParsing pulumi.BoolPtrInput
// The fluentd config for Project Logging. For `kind = fluentd`. Conflicts with `customTargetConfig`, `elasticsearchConfig`, `kafkaConfig`, `splunkConfig` and `syslogConfig` (list maxitems:1)
FluentdConfig ProjectLoggingFluentdConfigPtrInput
// The kafka config for Project Logging. For `kind = kafka`. Conflicts with `customTargetConfig`, `elasticsearchConfig`, `fluentdConfig`, `splunkConfig` and `syslogConfig` (list maxitems:1)
KafkaConfig ProjectLoggingKafkaConfigPtrInput
// The kind of the Project Logging. `elasticsearch`, `fluentd`, `kafka`, `splunk` and `syslog` are supported (string)
Kind pulumi.StringPtrInput
// Labels for Project Logging object (map)
Labels pulumi.MapInput
// The name of the Project Logging config (string)
Name pulumi.StringPtrInput
// The namespace id from Project logging (string)
NamespaceId pulumi.StringPtrInput
// How often buffered logs would be flushed. Default: `3` seconds (int)
OutputFlushInterval pulumi.IntPtrInput
// The output tags for Project Logging (map)
OutputTags pulumi.MapInput
// The project id to configure logging (string)
ProjectId pulumi.StringPtrInput
// The splunk config for Project Logging. For `kind = splunk`. Conflicts with `customTargetConfig`, `elasticsearchConfig`, `fluentdConfig`, `kafkaConfig`, and `syslogConfig` (list maxitems:1)
SplunkConfig ProjectLoggingSplunkConfigPtrInput
// The syslog config for Project Logging. For `kind = syslog`. Conflicts with `customTargetConfig`, `elasticsearchConfig`, `fluentdConfig`, `kafkaConfig`, and `splunkConfig` (list maxitems:1)
SyslogConfig ProjectLoggingSyslogConfigPtrInput
}
func (ProjectLoggingState) ElementType() reflect.Type {
return reflect.TypeOf((*projectLoggingState)(nil)).Elem()
}
type projectLoggingArgs struct {
// Annotations for Project Logging object (map)
Annotations map[string]interface{} `pulumi:"annotations"`
// The custom target config for Cluster Logging. For `kind = custom`. Conflicts with `elasticsearchConfig`, `fluentdConfig`, `kafkaConfig`, `splunkConfig` and `syslogConfig` (list maxitems:1)
CustomTargetConfig *ProjectLoggingCustomTargetConfig `pulumi:"customTargetConfig"`
// The elasticsearch config for Project Logging. For `kind = elasticsearch`. Conflicts with `customTargetConfig`, `fluentdConfig`, `kafkaConfig`, `splunkConfig` and `syslogConfig` (list maxitems:1)
ElasticsearchConfig *ProjectLoggingElasticsearchConfig `pulumi:"elasticsearchConfig"`
// Enable json log parsing. Default: `false` (bool)
EnableJsonParsing *bool `pulumi:"enableJsonParsing"`
// The fluentd config for Project Logging. For `kind = fluentd`. Conflicts with `customTargetConfig`, `elasticsearchConfig`, `kafkaConfig`, `splunkConfig` and `syslogConfig` (list maxitems:1)
FluentdConfig *ProjectLoggingFluentdConfig `pulumi:"fluentdConfig"`
// The kafka config for Project Logging. For `kind = kafka`. Conflicts with `customTargetConfig`, `elasticsearchConfig`, `fluentdConfig`, `splunkConfig` and `syslogConfig` (list maxitems:1)
KafkaConfig *ProjectLoggingKafkaConfig `pulumi:"kafkaConfig"`
// The kind of the Project Logging. `elasticsearch`, `fluentd`, `kafka`, `splunk` and `syslog` are supported (string)
Kind string `pulumi:"kind"`
// Labels for Project Logging object (map)
Labels map[string]interface{} `pulumi:"labels"`
// The name of the Project Logging config (string)
Name *string `pulumi:"name"`
// The namespace id from Project logging (string)
NamespaceId *string `pulumi:"namespaceId"`
// How often buffered logs would be flushed. Default: `3` seconds (int)
OutputFlushInterval *int `pulumi:"outputFlushInterval"`
// The output tags for Project Logging (map)
OutputTags map[string]interface{} `pulumi:"outputTags"`
// The project id to configure logging (string)
ProjectId string `pulumi:"projectId"`
// The splunk config for Project Logging. For `kind = splunk`. Conflicts with `customTargetConfig`, `elasticsearchConfig`, `fluentdConfig`, `kafkaConfig`, and `syslogConfig` (list maxitems:1)
SplunkConfig *ProjectLoggingSplunkConfig `pulumi:"splunkConfig"`
// The syslog config for Project Logging. For `kind = syslog`. Conflicts with `customTargetConfig`, `elasticsearchConfig`, `fluentdConfig`, `kafkaConfig`, and `splunkConfig` (list maxitems:1)
SyslogConfig *ProjectLoggingSyslogConfig `pulumi:"syslogConfig"`
}
// The set of arguments for constructing a ProjectLogging resource.
type ProjectLoggingArgs struct {
// Annotations for Project Logging object (map)
Annotations pulumi.MapInput
// The custom target config for Cluster Logging. For `kind = custom`. Conflicts with `elasticsearchConfig`, `fluentdConfig`, `kafkaConfig`, `splunkConfig` and `syslogConfig` (list maxitems:1)
CustomTargetConfig ProjectLoggingCustomTargetConfigPtrInput
// The elasticsearch config for Project Logging. For `kind = elasticsearch`. Conflicts with `customTargetConfig`, `fluentdConfig`, `kafkaConfig`, `splunkConfig` and `syslogConfig` (list maxitems:1)
ElasticsearchConfig ProjectLoggingElasticsearchConfigPtrInput
// Enable json log parsing. Default: `false` (bool)
EnableJsonParsing pulumi.BoolPtrInput
// The fluentd config for Project Logging. For `kind = fluentd`. Conflicts with `customTargetConfig`, `elasticsearchConfig`, `kafkaConfig`, `splunkConfig` and `syslogConfig` (list maxitems:1)
FluentdConfig ProjectLoggingFluentdConfigPtrInput
// The kafka config for Project Logging. For `kind = kafka`. Conflicts with `customTargetConfig`, `elasticsearchConfig`, `fluentdConfig`, `splunkConfig` and `syslogConfig` (list maxitems:1)
KafkaConfig ProjectLoggingKafkaConfigPtrInput
// The kind of the Project Logging. `elasticsearch`, `fluentd`, `kafka`, `splunk` and `syslog` are supported (string)
Kind pulumi.StringInput
// Labels for Project Logging object (map)
Labels pulumi.MapInput
// The name of the Project Logging config (string)
Name pulumi.StringPtrInput
// The namespace id from Project logging (string)
NamespaceId pulumi.StringPtrInput
// How often buffered logs would be flushed. Default: `3` seconds (int)
OutputFlushInterval pulumi.IntPtrInput
// The output tags for Project Logging (map)
OutputTags pulumi.MapInput
// The project id to configure logging (string)
ProjectId pulumi.StringInput
// The splunk config for Project Logging. For `kind = splunk`. Conflicts with `customTargetConfig`, `elasticsearchConfig`, `fluentdConfig`, `kafkaConfig`, and `syslogConfig` (list maxitems:1)
SplunkConfig ProjectLoggingSplunkConfigPtrInput
// The syslog config for Project Logging. For `kind = syslog`. Conflicts with `customTargetConfig`, `elasticsearchConfig`, `fluentdConfig`, `kafkaConfig`, and `splunkConfig` (list maxitems:1)
SyslogConfig ProjectLoggingSyslogConfigPtrInput
}
func (ProjectLoggingArgs) ElementType() reflect.Type {
return reflect.TypeOf((*projectLoggingArgs)(nil)).Elem()
}
type ProjectLoggingInput interface {
pulumi.Input
ToProjectLoggingOutput() ProjectLoggingOutput
ToProjectLoggingOutputWithContext(ctx context.Context) ProjectLoggingOutput
}
func (*ProjectLogging) ElementType() reflect.Type {
return reflect.TypeOf((*ProjectLogging)(nil))
}
func (i *ProjectLogging) ToProjectLoggingOutput() ProjectLoggingOutput {
return i.ToProjectLoggingOutputWithContext(context.Background())
}
func (i *ProjectLogging) ToProjectLoggingOutputWithContext(ctx context.Context) ProjectLoggingOutput {
return pulumi.ToOutputWithContext(ctx, i).(ProjectLoggingOutput)
}
func (i *ProjectLogging) ToProjectLoggingPtrOutput() ProjectLoggingPtrOutput {
return i.ToProjectLoggingPtrOutputWithContext(context.Background())
}
func (i *ProjectLogging) ToProjectLoggingPtrOutputWithContext(ctx context.Context) ProjectLoggingPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ProjectLoggingPtrOutput)
}
type ProjectLoggingPtrInput interface {
pulumi.Input
ToProjectLoggingPtrOutput() ProjectLoggingPtrOutput
ToProjectLoggingPtrOutputWithContext(ctx context.Context) ProjectLoggingPtrOutput
}
type projectLoggingPtrType ProjectLoggingArgs
func (*projectLoggingPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**ProjectLogging)(nil))
}
func (i *projectLoggingPtrType) ToProjectLoggingPtrOutput() ProjectLoggingPtrOutput {
return i.ToProjectLoggingPtrOutputWithContext(context.Background())
}
func (i *projectLoggingPtrType) ToProjectLoggingPtrOutputWithContext(ctx context.Context) ProjectLoggingPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ProjectLoggingPtrOutput)
}
// ProjectLoggingArrayInput is an input type that accepts ProjectLoggingArray and ProjectLoggingArrayOutput values.
// You can construct a concrete instance of `ProjectLoggingArrayInput` via:
//
// ProjectLoggingArray{ ProjectLoggingArgs{...} }
type ProjectLoggingArrayInput interface {
pulumi.Input
ToProjectLoggingArrayOutput() ProjectLoggingArrayOutput
ToProjectLoggingArrayOutputWithContext(context.Context) ProjectLoggingArrayOutput
}
type ProjectLoggingArray []ProjectLoggingInput
func (ProjectLoggingArray) ElementType() reflect.Type {
return reflect.TypeOf(([]*ProjectLogging)(nil))
}
func (i ProjectLoggingArray) ToProjectLoggingArrayOutput() ProjectLoggingArrayOutput {
return i.ToProjectLoggingArrayOutputWithContext(context.Background())
}
func (i ProjectLoggingArray) ToProjectLoggingArrayOutputWithContext(ctx context.Context) ProjectLoggingArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(ProjectLoggingArrayOutput)
}
// ProjectLoggingMapInput is an input type that accepts ProjectLoggingMap and ProjectLoggingMapOutput values.
// You can construct a concrete instance of `ProjectLoggingMapInput` via:
//
// ProjectLoggingMap{ "key": ProjectLoggingArgs{...} }
type ProjectLoggingMapInput interface {
pulumi.Input
ToProjectLoggingMapOutput() ProjectLoggingMapOutput
ToProjectLoggingMapOutputWithContext(context.Context) ProjectLoggingMapOutput
}
type ProjectLoggingMap map[string]ProjectLoggingInput
func (ProjectLoggingMap) ElementType() reflect.Type {
return reflect.TypeOf((map[string]*ProjectLogging)(nil))
}
func (i ProjectLoggingMap) ToProjectLoggingMapOutput() ProjectLoggingMapOutput {
return i.ToProjectLoggingMapOutputWithContext(context.Background())
}
func (i ProjectLoggingMap) ToProjectLoggingMapOutputWithContext(ctx context.Context) ProjectLoggingMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(ProjectLoggingMapOutput)
}
type ProjectLoggingOutput struct {
*pulumi.OutputState
}
func (ProjectLoggingOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ProjectLogging)(nil))
}
func (o ProjectLoggingOutput) ToProjectLoggingOutput() ProjectLoggingOutput {
return o
}
func (o ProjectLoggingOutput) ToProjectLoggingOutputWithContext(ctx context.Context) ProjectLoggingOutput {
return o
}
func (o ProjectLoggingOutput) ToProjectLoggingPtrOutput() ProjectLoggingPtrOutput {
return o.ToProjectLoggingPtrOutputWithContext(context.Background())
}
func (o ProjectLoggingOutput) ToProjectLoggingPtrOutputWithContext(ctx context.Context) ProjectLoggingPtrOutput {
return o.ApplyT(func(v ProjectLogging) *ProjectLogging {
return &v
}).(ProjectLoggingPtrOutput)
}
type ProjectLoggingPtrOutput struct {
*pulumi.OutputState
}
func (ProjectLoggingPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**ProjectLogging)(nil))
}
func (o ProjectLoggingPtrOutput) ToProjectLoggingPtrOutput() ProjectLoggingPtrOutput {
return o
}
func (o ProjectLoggingPtrOutput) ToProjectLoggingPtrOutputWithContext(ctx context.Context) ProjectLoggingPtrOutput {
return o
}
type ProjectLoggingArrayOutput struct{ *pulumi.OutputState }
func (ProjectLoggingArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]ProjectLogging)(nil))
}
func (o ProjectLoggingArrayOutput) ToProjectLoggingArrayOutput() ProjectLoggingArrayOutput {
return o
}
func (o ProjectLoggingArrayOutput) ToProjectLoggingArrayOutputWithContext(ctx context.Context) ProjectLoggingArrayOutput {
return o
}
func (o ProjectLoggingArrayOutput) Index(i pulumi.IntInput) ProjectLoggingOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) ProjectLogging {
return vs[0].([]ProjectLogging)[vs[1].(int)]
}).(ProjectLoggingOutput)
}
type ProjectLoggingMapOutput struct{ *pulumi.OutputState }
func (ProjectLoggingMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]ProjectLogging)(nil))
}
func (o ProjectLoggingMapOutput) ToProjectLoggingMapOutput() ProjectLoggingMapOutput {
return o
}
func (o ProjectLoggingMapOutput) ToProjectLoggingMapOutputWithContext(ctx context.Context) ProjectLoggingMapOutput {
return o
}
func (o ProjectLoggingMapOutput) MapIndex(k pulumi.StringInput) ProjectLoggingOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) ProjectLogging {
return vs[0].(map[string]ProjectLogging)[vs[1].(string)]
}).(ProjectLoggingOutput)
}
func init() {
pulumi.RegisterOutputType(ProjectLoggingOutput{})
pulumi.RegisterOutputType(ProjectLoggingPtrOutput{})
pulumi.RegisterOutputType(ProjectLoggingArrayOutput{})
pulumi.RegisterOutputType(ProjectLoggingMapOutput{})
}