/
pulumiTypes.go
682 lines (547 loc) · 31.3 KB
/
pulumiTypes.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
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
// Code generated by pulumi-language-go DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package aps
import (
"context"
"reflect"
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
var _ = internal.GetEnvOrDefault
// A key-value pair to associate with a resource.
type RuleGroupsNamespaceTag struct {
// The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
Key string `pulumi:"key"`
// The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
Value string `pulumi:"value"`
}
// Scraper metrics destination
type ScraperDestination struct {
// Configuration for Amazon Managed Prometheus metrics destination
AmpConfiguration *ScraperDestinationAmpConfigurationProperties `pulumi:"ampConfiguration"`
}
// ScraperDestinationInput is an input type that accepts ScraperDestinationArgs and ScraperDestinationOutput values.
// You can construct a concrete instance of `ScraperDestinationInput` via:
//
// ScraperDestinationArgs{...}
type ScraperDestinationInput interface {
pulumi.Input
ToScraperDestinationOutput() ScraperDestinationOutput
ToScraperDestinationOutputWithContext(context.Context) ScraperDestinationOutput
}
// Scraper metrics destination
type ScraperDestinationArgs struct {
// Configuration for Amazon Managed Prometheus metrics destination
AmpConfiguration ScraperDestinationAmpConfigurationPropertiesPtrInput `pulumi:"ampConfiguration"`
}
func (ScraperDestinationArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ScraperDestination)(nil)).Elem()
}
func (i ScraperDestinationArgs) ToScraperDestinationOutput() ScraperDestinationOutput {
return i.ToScraperDestinationOutputWithContext(context.Background())
}
func (i ScraperDestinationArgs) ToScraperDestinationOutputWithContext(ctx context.Context) ScraperDestinationOutput {
return pulumi.ToOutputWithContext(ctx, i).(ScraperDestinationOutput)
}
// Scraper metrics destination
type ScraperDestinationOutput struct{ *pulumi.OutputState }
func (ScraperDestinationOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ScraperDestination)(nil)).Elem()
}
func (o ScraperDestinationOutput) ToScraperDestinationOutput() ScraperDestinationOutput {
return o
}
func (o ScraperDestinationOutput) ToScraperDestinationOutputWithContext(ctx context.Context) ScraperDestinationOutput {
return o
}
// Configuration for Amazon Managed Prometheus metrics destination
func (o ScraperDestinationOutput) AmpConfiguration() ScraperDestinationAmpConfigurationPropertiesPtrOutput {
return o.ApplyT(func(v ScraperDestination) *ScraperDestinationAmpConfigurationProperties { return v.AmpConfiguration }).(ScraperDestinationAmpConfigurationPropertiesPtrOutput)
}
// Configuration for Amazon Managed Prometheus metrics destination
type ScraperDestinationAmpConfigurationProperties struct {
// ARN of an Amazon Managed Prometheus workspace
WorkspaceArn string `pulumi:"workspaceArn"`
}
// ScraperDestinationAmpConfigurationPropertiesInput is an input type that accepts ScraperDestinationAmpConfigurationPropertiesArgs and ScraperDestinationAmpConfigurationPropertiesOutput values.
// You can construct a concrete instance of `ScraperDestinationAmpConfigurationPropertiesInput` via:
//
// ScraperDestinationAmpConfigurationPropertiesArgs{...}
type ScraperDestinationAmpConfigurationPropertiesInput interface {
pulumi.Input
ToScraperDestinationAmpConfigurationPropertiesOutput() ScraperDestinationAmpConfigurationPropertiesOutput
ToScraperDestinationAmpConfigurationPropertiesOutputWithContext(context.Context) ScraperDestinationAmpConfigurationPropertiesOutput
}
// Configuration for Amazon Managed Prometheus metrics destination
type ScraperDestinationAmpConfigurationPropertiesArgs struct {
// ARN of an Amazon Managed Prometheus workspace
WorkspaceArn pulumi.StringInput `pulumi:"workspaceArn"`
}
func (ScraperDestinationAmpConfigurationPropertiesArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ScraperDestinationAmpConfigurationProperties)(nil)).Elem()
}
func (i ScraperDestinationAmpConfigurationPropertiesArgs) ToScraperDestinationAmpConfigurationPropertiesOutput() ScraperDestinationAmpConfigurationPropertiesOutput {
return i.ToScraperDestinationAmpConfigurationPropertiesOutputWithContext(context.Background())
}
func (i ScraperDestinationAmpConfigurationPropertiesArgs) ToScraperDestinationAmpConfigurationPropertiesOutputWithContext(ctx context.Context) ScraperDestinationAmpConfigurationPropertiesOutput {
return pulumi.ToOutputWithContext(ctx, i).(ScraperDestinationAmpConfigurationPropertiesOutput)
}
func (i ScraperDestinationAmpConfigurationPropertiesArgs) ToScraperDestinationAmpConfigurationPropertiesPtrOutput() ScraperDestinationAmpConfigurationPropertiesPtrOutput {
return i.ToScraperDestinationAmpConfigurationPropertiesPtrOutputWithContext(context.Background())
}
func (i ScraperDestinationAmpConfigurationPropertiesArgs) ToScraperDestinationAmpConfigurationPropertiesPtrOutputWithContext(ctx context.Context) ScraperDestinationAmpConfigurationPropertiesPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ScraperDestinationAmpConfigurationPropertiesOutput).ToScraperDestinationAmpConfigurationPropertiesPtrOutputWithContext(ctx)
}
// ScraperDestinationAmpConfigurationPropertiesPtrInput is an input type that accepts ScraperDestinationAmpConfigurationPropertiesArgs, ScraperDestinationAmpConfigurationPropertiesPtr and ScraperDestinationAmpConfigurationPropertiesPtrOutput values.
// You can construct a concrete instance of `ScraperDestinationAmpConfigurationPropertiesPtrInput` via:
//
// ScraperDestinationAmpConfigurationPropertiesArgs{...}
//
// or:
//
// nil
type ScraperDestinationAmpConfigurationPropertiesPtrInput interface {
pulumi.Input
ToScraperDestinationAmpConfigurationPropertiesPtrOutput() ScraperDestinationAmpConfigurationPropertiesPtrOutput
ToScraperDestinationAmpConfigurationPropertiesPtrOutputWithContext(context.Context) ScraperDestinationAmpConfigurationPropertiesPtrOutput
}
type scraperDestinationAmpConfigurationPropertiesPtrType ScraperDestinationAmpConfigurationPropertiesArgs
func ScraperDestinationAmpConfigurationPropertiesPtr(v *ScraperDestinationAmpConfigurationPropertiesArgs) ScraperDestinationAmpConfigurationPropertiesPtrInput {
return (*scraperDestinationAmpConfigurationPropertiesPtrType)(v)
}
func (*scraperDestinationAmpConfigurationPropertiesPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**ScraperDestinationAmpConfigurationProperties)(nil)).Elem()
}
func (i *scraperDestinationAmpConfigurationPropertiesPtrType) ToScraperDestinationAmpConfigurationPropertiesPtrOutput() ScraperDestinationAmpConfigurationPropertiesPtrOutput {
return i.ToScraperDestinationAmpConfigurationPropertiesPtrOutputWithContext(context.Background())
}
func (i *scraperDestinationAmpConfigurationPropertiesPtrType) ToScraperDestinationAmpConfigurationPropertiesPtrOutputWithContext(ctx context.Context) ScraperDestinationAmpConfigurationPropertiesPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ScraperDestinationAmpConfigurationPropertiesPtrOutput)
}
// Configuration for Amazon Managed Prometheus metrics destination
type ScraperDestinationAmpConfigurationPropertiesOutput struct{ *pulumi.OutputState }
func (ScraperDestinationAmpConfigurationPropertiesOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ScraperDestinationAmpConfigurationProperties)(nil)).Elem()
}
func (o ScraperDestinationAmpConfigurationPropertiesOutput) ToScraperDestinationAmpConfigurationPropertiesOutput() ScraperDestinationAmpConfigurationPropertiesOutput {
return o
}
func (o ScraperDestinationAmpConfigurationPropertiesOutput) ToScraperDestinationAmpConfigurationPropertiesOutputWithContext(ctx context.Context) ScraperDestinationAmpConfigurationPropertiesOutput {
return o
}
func (o ScraperDestinationAmpConfigurationPropertiesOutput) ToScraperDestinationAmpConfigurationPropertiesPtrOutput() ScraperDestinationAmpConfigurationPropertiesPtrOutput {
return o.ToScraperDestinationAmpConfigurationPropertiesPtrOutputWithContext(context.Background())
}
func (o ScraperDestinationAmpConfigurationPropertiesOutput) ToScraperDestinationAmpConfigurationPropertiesPtrOutputWithContext(ctx context.Context) ScraperDestinationAmpConfigurationPropertiesPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v ScraperDestinationAmpConfigurationProperties) *ScraperDestinationAmpConfigurationProperties {
return &v
}).(ScraperDestinationAmpConfigurationPropertiesPtrOutput)
}
// ARN of an Amazon Managed Prometheus workspace
func (o ScraperDestinationAmpConfigurationPropertiesOutput) WorkspaceArn() pulumi.StringOutput {
return o.ApplyT(func(v ScraperDestinationAmpConfigurationProperties) string { return v.WorkspaceArn }).(pulumi.StringOutput)
}
type ScraperDestinationAmpConfigurationPropertiesPtrOutput struct{ *pulumi.OutputState }
func (ScraperDestinationAmpConfigurationPropertiesPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**ScraperDestinationAmpConfigurationProperties)(nil)).Elem()
}
func (o ScraperDestinationAmpConfigurationPropertiesPtrOutput) ToScraperDestinationAmpConfigurationPropertiesPtrOutput() ScraperDestinationAmpConfigurationPropertiesPtrOutput {
return o
}
func (o ScraperDestinationAmpConfigurationPropertiesPtrOutput) ToScraperDestinationAmpConfigurationPropertiesPtrOutputWithContext(ctx context.Context) ScraperDestinationAmpConfigurationPropertiesPtrOutput {
return o
}
func (o ScraperDestinationAmpConfigurationPropertiesPtrOutput) Elem() ScraperDestinationAmpConfigurationPropertiesOutput {
return o.ApplyT(func(v *ScraperDestinationAmpConfigurationProperties) ScraperDestinationAmpConfigurationProperties {
if v != nil {
return *v
}
var ret ScraperDestinationAmpConfigurationProperties
return ret
}).(ScraperDestinationAmpConfigurationPropertiesOutput)
}
// ARN of an Amazon Managed Prometheus workspace
func (o ScraperDestinationAmpConfigurationPropertiesPtrOutput) WorkspaceArn() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ScraperDestinationAmpConfigurationProperties) *string {
if v == nil {
return nil
}
return &v.WorkspaceArn
}).(pulumi.StringPtrOutput)
}
// Scraper configuration
type ScraperScrapeConfiguration struct {
// Prometheus compatible scrape configuration in base64 encoded blob format
ConfigurationBlob *string `pulumi:"configurationBlob"`
}
// ScraperScrapeConfigurationInput is an input type that accepts ScraperScrapeConfigurationArgs and ScraperScrapeConfigurationOutput values.
// You can construct a concrete instance of `ScraperScrapeConfigurationInput` via:
//
// ScraperScrapeConfigurationArgs{...}
type ScraperScrapeConfigurationInput interface {
pulumi.Input
ToScraperScrapeConfigurationOutput() ScraperScrapeConfigurationOutput
ToScraperScrapeConfigurationOutputWithContext(context.Context) ScraperScrapeConfigurationOutput
}
// Scraper configuration
type ScraperScrapeConfigurationArgs struct {
// Prometheus compatible scrape configuration in base64 encoded blob format
ConfigurationBlob pulumi.StringPtrInput `pulumi:"configurationBlob"`
}
func (ScraperScrapeConfigurationArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ScraperScrapeConfiguration)(nil)).Elem()
}
func (i ScraperScrapeConfigurationArgs) ToScraperScrapeConfigurationOutput() ScraperScrapeConfigurationOutput {
return i.ToScraperScrapeConfigurationOutputWithContext(context.Background())
}
func (i ScraperScrapeConfigurationArgs) ToScraperScrapeConfigurationOutputWithContext(ctx context.Context) ScraperScrapeConfigurationOutput {
return pulumi.ToOutputWithContext(ctx, i).(ScraperScrapeConfigurationOutput)
}
// Scraper configuration
type ScraperScrapeConfigurationOutput struct{ *pulumi.OutputState }
func (ScraperScrapeConfigurationOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ScraperScrapeConfiguration)(nil)).Elem()
}
func (o ScraperScrapeConfigurationOutput) ToScraperScrapeConfigurationOutput() ScraperScrapeConfigurationOutput {
return o
}
func (o ScraperScrapeConfigurationOutput) ToScraperScrapeConfigurationOutputWithContext(ctx context.Context) ScraperScrapeConfigurationOutput {
return o
}
// Prometheus compatible scrape configuration in base64 encoded blob format
func (o ScraperScrapeConfigurationOutput) ConfigurationBlob() pulumi.StringPtrOutput {
return o.ApplyT(func(v ScraperScrapeConfiguration) *string { return v.ConfigurationBlob }).(pulumi.StringPtrOutput)
}
// Scraper metrics source
type ScraperSource struct {
// Configuration for EKS metrics source
EksConfiguration *ScraperSourceEksConfigurationProperties `pulumi:"eksConfiguration"`
}
// ScraperSourceInput is an input type that accepts ScraperSourceArgs and ScraperSourceOutput values.
// You can construct a concrete instance of `ScraperSourceInput` via:
//
// ScraperSourceArgs{...}
type ScraperSourceInput interface {
pulumi.Input
ToScraperSourceOutput() ScraperSourceOutput
ToScraperSourceOutputWithContext(context.Context) ScraperSourceOutput
}
// Scraper metrics source
type ScraperSourceArgs struct {
// Configuration for EKS metrics source
EksConfiguration ScraperSourceEksConfigurationPropertiesPtrInput `pulumi:"eksConfiguration"`
}
func (ScraperSourceArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ScraperSource)(nil)).Elem()
}
func (i ScraperSourceArgs) ToScraperSourceOutput() ScraperSourceOutput {
return i.ToScraperSourceOutputWithContext(context.Background())
}
func (i ScraperSourceArgs) ToScraperSourceOutputWithContext(ctx context.Context) ScraperSourceOutput {
return pulumi.ToOutputWithContext(ctx, i).(ScraperSourceOutput)
}
// Scraper metrics source
type ScraperSourceOutput struct{ *pulumi.OutputState }
func (ScraperSourceOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ScraperSource)(nil)).Elem()
}
func (o ScraperSourceOutput) ToScraperSourceOutput() ScraperSourceOutput {
return o
}
func (o ScraperSourceOutput) ToScraperSourceOutputWithContext(ctx context.Context) ScraperSourceOutput {
return o
}
// Configuration for EKS metrics source
func (o ScraperSourceOutput) EksConfiguration() ScraperSourceEksConfigurationPropertiesPtrOutput {
return o.ApplyT(func(v ScraperSource) *ScraperSourceEksConfigurationProperties { return v.EksConfiguration }).(ScraperSourceEksConfigurationPropertiesPtrOutput)
}
// Configuration for EKS metrics source
type ScraperSourceEksConfigurationProperties struct {
// ARN of an EKS cluster
ClusterArn string `pulumi:"clusterArn"`
// List of security group IDs
SecurityGroupIds []string `pulumi:"securityGroupIds"`
// List of subnet IDs
SubnetIds []string `pulumi:"subnetIds"`
}
// ScraperSourceEksConfigurationPropertiesInput is an input type that accepts ScraperSourceEksConfigurationPropertiesArgs and ScraperSourceEksConfigurationPropertiesOutput values.
// You can construct a concrete instance of `ScraperSourceEksConfigurationPropertiesInput` via:
//
// ScraperSourceEksConfigurationPropertiesArgs{...}
type ScraperSourceEksConfigurationPropertiesInput interface {
pulumi.Input
ToScraperSourceEksConfigurationPropertiesOutput() ScraperSourceEksConfigurationPropertiesOutput
ToScraperSourceEksConfigurationPropertiesOutputWithContext(context.Context) ScraperSourceEksConfigurationPropertiesOutput
}
// Configuration for EKS metrics source
type ScraperSourceEksConfigurationPropertiesArgs struct {
// ARN of an EKS cluster
ClusterArn pulumi.StringInput `pulumi:"clusterArn"`
// List of security group IDs
SecurityGroupIds pulumi.StringArrayInput `pulumi:"securityGroupIds"`
// List of subnet IDs
SubnetIds pulumi.StringArrayInput `pulumi:"subnetIds"`
}
func (ScraperSourceEksConfigurationPropertiesArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ScraperSourceEksConfigurationProperties)(nil)).Elem()
}
func (i ScraperSourceEksConfigurationPropertiesArgs) ToScraperSourceEksConfigurationPropertiesOutput() ScraperSourceEksConfigurationPropertiesOutput {
return i.ToScraperSourceEksConfigurationPropertiesOutputWithContext(context.Background())
}
func (i ScraperSourceEksConfigurationPropertiesArgs) ToScraperSourceEksConfigurationPropertiesOutputWithContext(ctx context.Context) ScraperSourceEksConfigurationPropertiesOutput {
return pulumi.ToOutputWithContext(ctx, i).(ScraperSourceEksConfigurationPropertiesOutput)
}
func (i ScraperSourceEksConfigurationPropertiesArgs) ToScraperSourceEksConfigurationPropertiesPtrOutput() ScraperSourceEksConfigurationPropertiesPtrOutput {
return i.ToScraperSourceEksConfigurationPropertiesPtrOutputWithContext(context.Background())
}
func (i ScraperSourceEksConfigurationPropertiesArgs) ToScraperSourceEksConfigurationPropertiesPtrOutputWithContext(ctx context.Context) ScraperSourceEksConfigurationPropertiesPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ScraperSourceEksConfigurationPropertiesOutput).ToScraperSourceEksConfigurationPropertiesPtrOutputWithContext(ctx)
}
// ScraperSourceEksConfigurationPropertiesPtrInput is an input type that accepts ScraperSourceEksConfigurationPropertiesArgs, ScraperSourceEksConfigurationPropertiesPtr and ScraperSourceEksConfigurationPropertiesPtrOutput values.
// You can construct a concrete instance of `ScraperSourceEksConfigurationPropertiesPtrInput` via:
//
// ScraperSourceEksConfigurationPropertiesArgs{...}
//
// or:
//
// nil
type ScraperSourceEksConfigurationPropertiesPtrInput interface {
pulumi.Input
ToScraperSourceEksConfigurationPropertiesPtrOutput() ScraperSourceEksConfigurationPropertiesPtrOutput
ToScraperSourceEksConfigurationPropertiesPtrOutputWithContext(context.Context) ScraperSourceEksConfigurationPropertiesPtrOutput
}
type scraperSourceEksConfigurationPropertiesPtrType ScraperSourceEksConfigurationPropertiesArgs
func ScraperSourceEksConfigurationPropertiesPtr(v *ScraperSourceEksConfigurationPropertiesArgs) ScraperSourceEksConfigurationPropertiesPtrInput {
return (*scraperSourceEksConfigurationPropertiesPtrType)(v)
}
func (*scraperSourceEksConfigurationPropertiesPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**ScraperSourceEksConfigurationProperties)(nil)).Elem()
}
func (i *scraperSourceEksConfigurationPropertiesPtrType) ToScraperSourceEksConfigurationPropertiesPtrOutput() ScraperSourceEksConfigurationPropertiesPtrOutput {
return i.ToScraperSourceEksConfigurationPropertiesPtrOutputWithContext(context.Background())
}
func (i *scraperSourceEksConfigurationPropertiesPtrType) ToScraperSourceEksConfigurationPropertiesPtrOutputWithContext(ctx context.Context) ScraperSourceEksConfigurationPropertiesPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ScraperSourceEksConfigurationPropertiesPtrOutput)
}
// Configuration for EKS metrics source
type ScraperSourceEksConfigurationPropertiesOutput struct{ *pulumi.OutputState }
func (ScraperSourceEksConfigurationPropertiesOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ScraperSourceEksConfigurationProperties)(nil)).Elem()
}
func (o ScraperSourceEksConfigurationPropertiesOutput) ToScraperSourceEksConfigurationPropertiesOutput() ScraperSourceEksConfigurationPropertiesOutput {
return o
}
func (o ScraperSourceEksConfigurationPropertiesOutput) ToScraperSourceEksConfigurationPropertiesOutputWithContext(ctx context.Context) ScraperSourceEksConfigurationPropertiesOutput {
return o
}
func (o ScraperSourceEksConfigurationPropertiesOutput) ToScraperSourceEksConfigurationPropertiesPtrOutput() ScraperSourceEksConfigurationPropertiesPtrOutput {
return o.ToScraperSourceEksConfigurationPropertiesPtrOutputWithContext(context.Background())
}
func (o ScraperSourceEksConfigurationPropertiesOutput) ToScraperSourceEksConfigurationPropertiesPtrOutputWithContext(ctx context.Context) ScraperSourceEksConfigurationPropertiesPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v ScraperSourceEksConfigurationProperties) *ScraperSourceEksConfigurationProperties {
return &v
}).(ScraperSourceEksConfigurationPropertiesPtrOutput)
}
// ARN of an EKS cluster
func (o ScraperSourceEksConfigurationPropertiesOutput) ClusterArn() pulumi.StringOutput {
return o.ApplyT(func(v ScraperSourceEksConfigurationProperties) string { return v.ClusterArn }).(pulumi.StringOutput)
}
// List of security group IDs
func (o ScraperSourceEksConfigurationPropertiesOutput) SecurityGroupIds() pulumi.StringArrayOutput {
return o.ApplyT(func(v ScraperSourceEksConfigurationProperties) []string { return v.SecurityGroupIds }).(pulumi.StringArrayOutput)
}
// List of subnet IDs
func (o ScraperSourceEksConfigurationPropertiesOutput) SubnetIds() pulumi.StringArrayOutput {
return o.ApplyT(func(v ScraperSourceEksConfigurationProperties) []string { return v.SubnetIds }).(pulumi.StringArrayOutput)
}
type ScraperSourceEksConfigurationPropertiesPtrOutput struct{ *pulumi.OutputState }
func (ScraperSourceEksConfigurationPropertiesPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**ScraperSourceEksConfigurationProperties)(nil)).Elem()
}
func (o ScraperSourceEksConfigurationPropertiesPtrOutput) ToScraperSourceEksConfigurationPropertiesPtrOutput() ScraperSourceEksConfigurationPropertiesPtrOutput {
return o
}
func (o ScraperSourceEksConfigurationPropertiesPtrOutput) ToScraperSourceEksConfigurationPropertiesPtrOutputWithContext(ctx context.Context) ScraperSourceEksConfigurationPropertiesPtrOutput {
return o
}
func (o ScraperSourceEksConfigurationPropertiesPtrOutput) Elem() ScraperSourceEksConfigurationPropertiesOutput {
return o.ApplyT(func(v *ScraperSourceEksConfigurationProperties) ScraperSourceEksConfigurationProperties {
if v != nil {
return *v
}
var ret ScraperSourceEksConfigurationProperties
return ret
}).(ScraperSourceEksConfigurationPropertiesOutput)
}
// ARN of an EKS cluster
func (o ScraperSourceEksConfigurationPropertiesPtrOutput) ClusterArn() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ScraperSourceEksConfigurationProperties) *string {
if v == nil {
return nil
}
return &v.ClusterArn
}).(pulumi.StringPtrOutput)
}
// List of security group IDs
func (o ScraperSourceEksConfigurationPropertiesPtrOutput) SecurityGroupIds() pulumi.StringArrayOutput {
return o.ApplyT(func(v *ScraperSourceEksConfigurationProperties) []string {
if v == nil {
return nil
}
return v.SecurityGroupIds
}).(pulumi.StringArrayOutput)
}
// List of subnet IDs
func (o ScraperSourceEksConfigurationPropertiesPtrOutput) SubnetIds() pulumi.StringArrayOutput {
return o.ApplyT(func(v *ScraperSourceEksConfigurationProperties) []string {
if v == nil {
return nil
}
return v.SubnetIds
}).(pulumi.StringArrayOutput)
}
// A key-value pair to associate with a resource.
type ScraperTag struct {
// The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
Key string `pulumi:"key"`
// The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
Value string `pulumi:"value"`
}
// Logging configuration
type WorkspaceLoggingConfiguration struct {
// CloudWatch log group ARN
LogGroupArn *string `pulumi:"logGroupArn"`
}
// WorkspaceLoggingConfigurationInput is an input type that accepts WorkspaceLoggingConfigurationArgs and WorkspaceLoggingConfigurationOutput values.
// You can construct a concrete instance of `WorkspaceLoggingConfigurationInput` via:
//
// WorkspaceLoggingConfigurationArgs{...}
type WorkspaceLoggingConfigurationInput interface {
pulumi.Input
ToWorkspaceLoggingConfigurationOutput() WorkspaceLoggingConfigurationOutput
ToWorkspaceLoggingConfigurationOutputWithContext(context.Context) WorkspaceLoggingConfigurationOutput
}
// Logging configuration
type WorkspaceLoggingConfigurationArgs struct {
// CloudWatch log group ARN
LogGroupArn pulumi.StringPtrInput `pulumi:"logGroupArn"`
}
func (WorkspaceLoggingConfigurationArgs) ElementType() reflect.Type {
return reflect.TypeOf((*WorkspaceLoggingConfiguration)(nil)).Elem()
}
func (i WorkspaceLoggingConfigurationArgs) ToWorkspaceLoggingConfigurationOutput() WorkspaceLoggingConfigurationOutput {
return i.ToWorkspaceLoggingConfigurationOutputWithContext(context.Background())
}
func (i WorkspaceLoggingConfigurationArgs) ToWorkspaceLoggingConfigurationOutputWithContext(ctx context.Context) WorkspaceLoggingConfigurationOutput {
return pulumi.ToOutputWithContext(ctx, i).(WorkspaceLoggingConfigurationOutput)
}
func (i WorkspaceLoggingConfigurationArgs) ToWorkspaceLoggingConfigurationPtrOutput() WorkspaceLoggingConfigurationPtrOutput {
return i.ToWorkspaceLoggingConfigurationPtrOutputWithContext(context.Background())
}
func (i WorkspaceLoggingConfigurationArgs) ToWorkspaceLoggingConfigurationPtrOutputWithContext(ctx context.Context) WorkspaceLoggingConfigurationPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(WorkspaceLoggingConfigurationOutput).ToWorkspaceLoggingConfigurationPtrOutputWithContext(ctx)
}
// WorkspaceLoggingConfigurationPtrInput is an input type that accepts WorkspaceLoggingConfigurationArgs, WorkspaceLoggingConfigurationPtr and WorkspaceLoggingConfigurationPtrOutput values.
// You can construct a concrete instance of `WorkspaceLoggingConfigurationPtrInput` via:
//
// WorkspaceLoggingConfigurationArgs{...}
//
// or:
//
// nil
type WorkspaceLoggingConfigurationPtrInput interface {
pulumi.Input
ToWorkspaceLoggingConfigurationPtrOutput() WorkspaceLoggingConfigurationPtrOutput
ToWorkspaceLoggingConfigurationPtrOutputWithContext(context.Context) WorkspaceLoggingConfigurationPtrOutput
}
type workspaceLoggingConfigurationPtrType WorkspaceLoggingConfigurationArgs
func WorkspaceLoggingConfigurationPtr(v *WorkspaceLoggingConfigurationArgs) WorkspaceLoggingConfigurationPtrInput {
return (*workspaceLoggingConfigurationPtrType)(v)
}
func (*workspaceLoggingConfigurationPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**WorkspaceLoggingConfiguration)(nil)).Elem()
}
func (i *workspaceLoggingConfigurationPtrType) ToWorkspaceLoggingConfigurationPtrOutput() WorkspaceLoggingConfigurationPtrOutput {
return i.ToWorkspaceLoggingConfigurationPtrOutputWithContext(context.Background())
}
func (i *workspaceLoggingConfigurationPtrType) ToWorkspaceLoggingConfigurationPtrOutputWithContext(ctx context.Context) WorkspaceLoggingConfigurationPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(WorkspaceLoggingConfigurationPtrOutput)
}
// Logging configuration
type WorkspaceLoggingConfigurationOutput struct{ *pulumi.OutputState }
func (WorkspaceLoggingConfigurationOutput) ElementType() reflect.Type {
return reflect.TypeOf((*WorkspaceLoggingConfiguration)(nil)).Elem()
}
func (o WorkspaceLoggingConfigurationOutput) ToWorkspaceLoggingConfigurationOutput() WorkspaceLoggingConfigurationOutput {
return o
}
func (o WorkspaceLoggingConfigurationOutput) ToWorkspaceLoggingConfigurationOutputWithContext(ctx context.Context) WorkspaceLoggingConfigurationOutput {
return o
}
func (o WorkspaceLoggingConfigurationOutput) ToWorkspaceLoggingConfigurationPtrOutput() WorkspaceLoggingConfigurationPtrOutput {
return o.ToWorkspaceLoggingConfigurationPtrOutputWithContext(context.Background())
}
func (o WorkspaceLoggingConfigurationOutput) ToWorkspaceLoggingConfigurationPtrOutputWithContext(ctx context.Context) WorkspaceLoggingConfigurationPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v WorkspaceLoggingConfiguration) *WorkspaceLoggingConfiguration {
return &v
}).(WorkspaceLoggingConfigurationPtrOutput)
}
// CloudWatch log group ARN
func (o WorkspaceLoggingConfigurationOutput) LogGroupArn() pulumi.StringPtrOutput {
return o.ApplyT(func(v WorkspaceLoggingConfiguration) *string { return v.LogGroupArn }).(pulumi.StringPtrOutput)
}
type WorkspaceLoggingConfigurationPtrOutput struct{ *pulumi.OutputState }
func (WorkspaceLoggingConfigurationPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**WorkspaceLoggingConfiguration)(nil)).Elem()
}
func (o WorkspaceLoggingConfigurationPtrOutput) ToWorkspaceLoggingConfigurationPtrOutput() WorkspaceLoggingConfigurationPtrOutput {
return o
}
func (o WorkspaceLoggingConfigurationPtrOutput) ToWorkspaceLoggingConfigurationPtrOutputWithContext(ctx context.Context) WorkspaceLoggingConfigurationPtrOutput {
return o
}
func (o WorkspaceLoggingConfigurationPtrOutput) Elem() WorkspaceLoggingConfigurationOutput {
return o.ApplyT(func(v *WorkspaceLoggingConfiguration) WorkspaceLoggingConfiguration {
if v != nil {
return *v
}
var ret WorkspaceLoggingConfiguration
return ret
}).(WorkspaceLoggingConfigurationOutput)
}
// CloudWatch log group ARN
func (o WorkspaceLoggingConfigurationPtrOutput) LogGroupArn() pulumi.StringPtrOutput {
return o.ApplyT(func(v *WorkspaceLoggingConfiguration) *string {
if v == nil {
return nil
}
return v.LogGroupArn
}).(pulumi.StringPtrOutput)
}
// A key-value pair to associate with a resource.
type WorkspaceTag struct {
// The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
Key string `pulumi:"key"`
// The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.
Value string `pulumi:"value"`
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*ScraperDestinationInput)(nil)).Elem(), ScraperDestinationArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*ScraperDestinationAmpConfigurationPropertiesInput)(nil)).Elem(), ScraperDestinationAmpConfigurationPropertiesArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*ScraperDestinationAmpConfigurationPropertiesPtrInput)(nil)).Elem(), ScraperDestinationAmpConfigurationPropertiesArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*ScraperScrapeConfigurationInput)(nil)).Elem(), ScraperScrapeConfigurationArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*ScraperSourceInput)(nil)).Elem(), ScraperSourceArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*ScraperSourceEksConfigurationPropertiesInput)(nil)).Elem(), ScraperSourceEksConfigurationPropertiesArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*ScraperSourceEksConfigurationPropertiesPtrInput)(nil)).Elem(), ScraperSourceEksConfigurationPropertiesArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*WorkspaceLoggingConfigurationInput)(nil)).Elem(), WorkspaceLoggingConfigurationArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*WorkspaceLoggingConfigurationPtrInput)(nil)).Elem(), WorkspaceLoggingConfigurationArgs{})
pulumi.RegisterOutputType(ScraperDestinationOutput{})
pulumi.RegisterOutputType(ScraperDestinationAmpConfigurationPropertiesOutput{})
pulumi.RegisterOutputType(ScraperDestinationAmpConfigurationPropertiesPtrOutput{})
pulumi.RegisterOutputType(ScraperScrapeConfigurationOutput{})
pulumi.RegisterOutputType(ScraperSourceOutput{})
pulumi.RegisterOutputType(ScraperSourceEksConfigurationPropertiesOutput{})
pulumi.RegisterOutputType(ScraperSourceEksConfigurationPropertiesPtrOutput{})
pulumi.RegisterOutputType(WorkspaceLoggingConfigurationOutput{})
pulumi.RegisterOutputType(WorkspaceLoggingConfigurationPtrOutput{})
}