-
Notifications
You must be signed in to change notification settings - Fork 51
/
grafana.go
470 lines (409 loc) · 22.1 KB
/
grafana.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
// 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 dashboard
import (
"context"
"reflect"
"errors"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Manages a Dashboard Grafana.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
// "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/dashboard"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
// Location: pulumi.String("West Europe"),
// })
// if err != nil {
// return err
// }
// _, err = dashboard.NewGrafana(ctx, "exampleGrafana", &dashboard.GrafanaArgs{
// ResourceGroupName: exampleResourceGroup.Name,
// Location: pulumi.String("West Europe"),
// ApiKeyEnabled: pulumi.Bool(true),
// DeterministicOutboundIpEnabled: pulumi.Bool(true),
// PublicNetworkAccessEnabled: pulumi.Bool(false),
// Identity: &dashboard.GrafanaIdentityArgs{
// Type: pulumi.String("SystemAssigned"),
// },
// Tags: pulumi.StringMap{
// "key": pulumi.String("value"),
// },
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
//
// ## Import
//
// Dashboard Grafana can be imported using the `resource id`, e.g.
//
// ```sh
//
// $ pulumi import azure:dashboard/grafana:Grafana example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.Dashboard/grafana/workspace1
//
// ```
type Grafana struct {
pulumi.CustomResourceState
// Whether to enable the api key setting of the Grafana instance. Defaults to `false`.
ApiKeyEnabled pulumi.BoolPtrOutput `pulumi:"apiKeyEnabled"`
// Scope for dns deterministic name hash calculation. The only possible value is `TenantReuse`. Defaults to `TenantReuse`.
AutoGeneratedDomainNameLabelScope pulumi.StringPtrOutput `pulumi:"autoGeneratedDomainNameLabelScope"`
// A `azureMonitorWorkspaceIntegrations` block as defined below.
AzureMonitorWorkspaceIntegrations GrafanaAzureMonitorWorkspaceIntegrationArrayOutput `pulumi:"azureMonitorWorkspaceIntegrations"`
// Whether to enable the Grafana instance to use deterministic outbound IPs. Defaults to `false`.
DeterministicOutboundIpEnabled pulumi.BoolPtrOutput `pulumi:"deterministicOutboundIpEnabled"`
// The endpoint of the Grafana instance.
Endpoint pulumi.StringOutput `pulumi:"endpoint"`
// The Grafana software version.
GrafanaVersion pulumi.StringOutput `pulumi:"grafanaVersion"`
// An `identity` block as defined below. Changing this forces a new Dashboard Grafana to be created.
Identity GrafanaIdentityPtrOutput `pulumi:"identity"`
// Specifies the Azure Region where the Dashboard Grafana should exist. Changing this forces a new Dashboard Grafana to be created.
Location pulumi.StringOutput `pulumi:"location"`
// Specifies the name which should be used for this Dashboard Grafana. Changing this forces a new Dashboard Grafana to be created.
Name pulumi.StringOutput `pulumi:"name"`
// List of outbound IPs if deterministicOutboundIP is enabled.
OutboundIps pulumi.StringArrayOutput `pulumi:"outboundIps"`
// Whether to enable traffic over the public interface. Defaults to `true`.
PublicNetworkAccessEnabled pulumi.BoolPtrOutput `pulumi:"publicNetworkAccessEnabled"`
// Specifies the name of the Resource Group where the Dashboard Grafana should exist. Changing this forces a new Dashboard Grafana to be created.
ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
// The name of the SKU used for the Grafana instance. The only possible value is `Standard`. Defaults to `Standard`. Changing this forces a new Dashboard Grafana to be created.
Sku pulumi.StringPtrOutput `pulumi:"sku"`
// A mapping of tags which should be assigned to the Dashboard Grafana.
Tags pulumi.StringMapOutput `pulumi:"tags"`
// Whether to enable the zone redundancy setting of the Grafana instance. Defaults to `false`. Changing this forces a new Dashboard Grafana to be created.
ZoneRedundancyEnabled pulumi.BoolPtrOutput `pulumi:"zoneRedundancyEnabled"`
}
// NewGrafana registers a new resource with the given unique name, arguments, and options.
func NewGrafana(ctx *pulumi.Context,
name string, args *GrafanaArgs, opts ...pulumi.ResourceOption) (*Grafana, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.ResourceGroupName == nil {
return nil, errors.New("invalid value for required argument 'ResourceGroupName'")
}
var resource Grafana
err := ctx.RegisterResource("azure:dashboard/grafana:Grafana", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetGrafana gets an existing Grafana 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 GetGrafana(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *GrafanaState, opts ...pulumi.ResourceOption) (*Grafana, error) {
var resource Grafana
err := ctx.ReadResource("azure:dashboard/grafana:Grafana", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering Grafana resources.
type grafanaState struct {
// Whether to enable the api key setting of the Grafana instance. Defaults to `false`.
ApiKeyEnabled *bool `pulumi:"apiKeyEnabled"`
// Scope for dns deterministic name hash calculation. The only possible value is `TenantReuse`. Defaults to `TenantReuse`.
AutoGeneratedDomainNameLabelScope *string `pulumi:"autoGeneratedDomainNameLabelScope"`
// A `azureMonitorWorkspaceIntegrations` block as defined below.
AzureMonitorWorkspaceIntegrations []GrafanaAzureMonitorWorkspaceIntegration `pulumi:"azureMonitorWorkspaceIntegrations"`
// Whether to enable the Grafana instance to use deterministic outbound IPs. Defaults to `false`.
DeterministicOutboundIpEnabled *bool `pulumi:"deterministicOutboundIpEnabled"`
// The endpoint of the Grafana instance.
Endpoint *string `pulumi:"endpoint"`
// The Grafana software version.
GrafanaVersion *string `pulumi:"grafanaVersion"`
// An `identity` block as defined below. Changing this forces a new Dashboard Grafana to be created.
Identity *GrafanaIdentity `pulumi:"identity"`
// Specifies the Azure Region where the Dashboard Grafana should exist. Changing this forces a new Dashboard Grafana to be created.
Location *string `pulumi:"location"`
// Specifies the name which should be used for this Dashboard Grafana. Changing this forces a new Dashboard Grafana to be created.
Name *string `pulumi:"name"`
// List of outbound IPs if deterministicOutboundIP is enabled.
OutboundIps []string `pulumi:"outboundIps"`
// Whether to enable traffic over the public interface. Defaults to `true`.
PublicNetworkAccessEnabled *bool `pulumi:"publicNetworkAccessEnabled"`
// Specifies the name of the Resource Group where the Dashboard Grafana should exist. Changing this forces a new Dashboard Grafana to be created.
ResourceGroupName *string `pulumi:"resourceGroupName"`
// The name of the SKU used for the Grafana instance. The only possible value is `Standard`. Defaults to `Standard`. Changing this forces a new Dashboard Grafana to be created.
Sku *string `pulumi:"sku"`
// A mapping of tags which should be assigned to the Dashboard Grafana.
Tags map[string]string `pulumi:"tags"`
// Whether to enable the zone redundancy setting of the Grafana instance. Defaults to `false`. Changing this forces a new Dashboard Grafana to be created.
ZoneRedundancyEnabled *bool `pulumi:"zoneRedundancyEnabled"`
}
type GrafanaState struct {
// Whether to enable the api key setting of the Grafana instance. Defaults to `false`.
ApiKeyEnabled pulumi.BoolPtrInput
// Scope for dns deterministic name hash calculation. The only possible value is `TenantReuse`. Defaults to `TenantReuse`.
AutoGeneratedDomainNameLabelScope pulumi.StringPtrInput
// A `azureMonitorWorkspaceIntegrations` block as defined below.
AzureMonitorWorkspaceIntegrations GrafanaAzureMonitorWorkspaceIntegrationArrayInput
// Whether to enable the Grafana instance to use deterministic outbound IPs. Defaults to `false`.
DeterministicOutboundIpEnabled pulumi.BoolPtrInput
// The endpoint of the Grafana instance.
Endpoint pulumi.StringPtrInput
// The Grafana software version.
GrafanaVersion pulumi.StringPtrInput
// An `identity` block as defined below. Changing this forces a new Dashboard Grafana to be created.
Identity GrafanaIdentityPtrInput
// Specifies the Azure Region where the Dashboard Grafana should exist. Changing this forces a new Dashboard Grafana to be created.
Location pulumi.StringPtrInput
// Specifies the name which should be used for this Dashboard Grafana. Changing this forces a new Dashboard Grafana to be created.
Name pulumi.StringPtrInput
// List of outbound IPs if deterministicOutboundIP is enabled.
OutboundIps pulumi.StringArrayInput
// Whether to enable traffic over the public interface. Defaults to `true`.
PublicNetworkAccessEnabled pulumi.BoolPtrInput
// Specifies the name of the Resource Group where the Dashboard Grafana should exist. Changing this forces a new Dashboard Grafana to be created.
ResourceGroupName pulumi.StringPtrInput
// The name of the SKU used for the Grafana instance. The only possible value is `Standard`. Defaults to `Standard`. Changing this forces a new Dashboard Grafana to be created.
Sku pulumi.StringPtrInput
// A mapping of tags which should be assigned to the Dashboard Grafana.
Tags pulumi.StringMapInput
// Whether to enable the zone redundancy setting of the Grafana instance. Defaults to `false`. Changing this forces a new Dashboard Grafana to be created.
ZoneRedundancyEnabled pulumi.BoolPtrInput
}
func (GrafanaState) ElementType() reflect.Type {
return reflect.TypeOf((*grafanaState)(nil)).Elem()
}
type grafanaArgs struct {
// Whether to enable the api key setting of the Grafana instance. Defaults to `false`.
ApiKeyEnabled *bool `pulumi:"apiKeyEnabled"`
// Scope for dns deterministic name hash calculation. The only possible value is `TenantReuse`. Defaults to `TenantReuse`.
AutoGeneratedDomainNameLabelScope *string `pulumi:"autoGeneratedDomainNameLabelScope"`
// A `azureMonitorWorkspaceIntegrations` block as defined below.
AzureMonitorWorkspaceIntegrations []GrafanaAzureMonitorWorkspaceIntegration `pulumi:"azureMonitorWorkspaceIntegrations"`
// Whether to enable the Grafana instance to use deterministic outbound IPs. Defaults to `false`.
DeterministicOutboundIpEnabled *bool `pulumi:"deterministicOutboundIpEnabled"`
// An `identity` block as defined below. Changing this forces a new Dashboard Grafana to be created.
Identity *GrafanaIdentity `pulumi:"identity"`
// Specifies the Azure Region where the Dashboard Grafana should exist. Changing this forces a new Dashboard Grafana to be created.
Location *string `pulumi:"location"`
// Specifies the name which should be used for this Dashboard Grafana. Changing this forces a new Dashboard Grafana to be created.
Name *string `pulumi:"name"`
// Whether to enable traffic over the public interface. Defaults to `true`.
PublicNetworkAccessEnabled *bool `pulumi:"publicNetworkAccessEnabled"`
// Specifies the name of the Resource Group where the Dashboard Grafana should exist. Changing this forces a new Dashboard Grafana to be created.
ResourceGroupName string `pulumi:"resourceGroupName"`
// The name of the SKU used for the Grafana instance. The only possible value is `Standard`. Defaults to `Standard`. Changing this forces a new Dashboard Grafana to be created.
Sku *string `pulumi:"sku"`
// A mapping of tags which should be assigned to the Dashboard Grafana.
Tags map[string]string `pulumi:"tags"`
// Whether to enable the zone redundancy setting of the Grafana instance. Defaults to `false`. Changing this forces a new Dashboard Grafana to be created.
ZoneRedundancyEnabled *bool `pulumi:"zoneRedundancyEnabled"`
}
// The set of arguments for constructing a Grafana resource.
type GrafanaArgs struct {
// Whether to enable the api key setting of the Grafana instance. Defaults to `false`.
ApiKeyEnabled pulumi.BoolPtrInput
// Scope for dns deterministic name hash calculation. The only possible value is `TenantReuse`. Defaults to `TenantReuse`.
AutoGeneratedDomainNameLabelScope pulumi.StringPtrInput
// A `azureMonitorWorkspaceIntegrations` block as defined below.
AzureMonitorWorkspaceIntegrations GrafanaAzureMonitorWorkspaceIntegrationArrayInput
// Whether to enable the Grafana instance to use deterministic outbound IPs. Defaults to `false`.
DeterministicOutboundIpEnabled pulumi.BoolPtrInput
// An `identity` block as defined below. Changing this forces a new Dashboard Grafana to be created.
Identity GrafanaIdentityPtrInput
// Specifies the Azure Region where the Dashboard Grafana should exist. Changing this forces a new Dashboard Grafana to be created.
Location pulumi.StringPtrInput
// Specifies the name which should be used for this Dashboard Grafana. Changing this forces a new Dashboard Grafana to be created.
Name pulumi.StringPtrInput
// Whether to enable traffic over the public interface. Defaults to `true`.
PublicNetworkAccessEnabled pulumi.BoolPtrInput
// Specifies the name of the Resource Group where the Dashboard Grafana should exist. Changing this forces a new Dashboard Grafana to be created.
ResourceGroupName pulumi.StringInput
// The name of the SKU used for the Grafana instance. The only possible value is `Standard`. Defaults to `Standard`. Changing this forces a new Dashboard Grafana to be created.
Sku pulumi.StringPtrInput
// A mapping of tags which should be assigned to the Dashboard Grafana.
Tags pulumi.StringMapInput
// Whether to enable the zone redundancy setting of the Grafana instance. Defaults to `false`. Changing this forces a new Dashboard Grafana to be created.
ZoneRedundancyEnabled pulumi.BoolPtrInput
}
func (GrafanaArgs) ElementType() reflect.Type {
return reflect.TypeOf((*grafanaArgs)(nil)).Elem()
}
type GrafanaInput interface {
pulumi.Input
ToGrafanaOutput() GrafanaOutput
ToGrafanaOutputWithContext(ctx context.Context) GrafanaOutput
}
func (*Grafana) ElementType() reflect.Type {
return reflect.TypeOf((**Grafana)(nil)).Elem()
}
func (i *Grafana) ToGrafanaOutput() GrafanaOutput {
return i.ToGrafanaOutputWithContext(context.Background())
}
func (i *Grafana) ToGrafanaOutputWithContext(ctx context.Context) GrafanaOutput {
return pulumi.ToOutputWithContext(ctx, i).(GrafanaOutput)
}
// GrafanaArrayInput is an input type that accepts GrafanaArray and GrafanaArrayOutput values.
// You can construct a concrete instance of `GrafanaArrayInput` via:
//
// GrafanaArray{ GrafanaArgs{...} }
type GrafanaArrayInput interface {
pulumi.Input
ToGrafanaArrayOutput() GrafanaArrayOutput
ToGrafanaArrayOutputWithContext(context.Context) GrafanaArrayOutput
}
type GrafanaArray []GrafanaInput
func (GrafanaArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*Grafana)(nil)).Elem()
}
func (i GrafanaArray) ToGrafanaArrayOutput() GrafanaArrayOutput {
return i.ToGrafanaArrayOutputWithContext(context.Background())
}
func (i GrafanaArray) ToGrafanaArrayOutputWithContext(ctx context.Context) GrafanaArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(GrafanaArrayOutput)
}
// GrafanaMapInput is an input type that accepts GrafanaMap and GrafanaMapOutput values.
// You can construct a concrete instance of `GrafanaMapInput` via:
//
// GrafanaMap{ "key": GrafanaArgs{...} }
type GrafanaMapInput interface {
pulumi.Input
ToGrafanaMapOutput() GrafanaMapOutput
ToGrafanaMapOutputWithContext(context.Context) GrafanaMapOutput
}
type GrafanaMap map[string]GrafanaInput
func (GrafanaMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*Grafana)(nil)).Elem()
}
func (i GrafanaMap) ToGrafanaMapOutput() GrafanaMapOutput {
return i.ToGrafanaMapOutputWithContext(context.Background())
}
func (i GrafanaMap) ToGrafanaMapOutputWithContext(ctx context.Context) GrafanaMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(GrafanaMapOutput)
}
type GrafanaOutput struct{ *pulumi.OutputState }
func (GrafanaOutput) ElementType() reflect.Type {
return reflect.TypeOf((**Grafana)(nil)).Elem()
}
func (o GrafanaOutput) ToGrafanaOutput() GrafanaOutput {
return o
}
func (o GrafanaOutput) ToGrafanaOutputWithContext(ctx context.Context) GrafanaOutput {
return o
}
// Whether to enable the api key setting of the Grafana instance. Defaults to `false`.
func (o GrafanaOutput) ApiKeyEnabled() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *Grafana) pulumi.BoolPtrOutput { return v.ApiKeyEnabled }).(pulumi.BoolPtrOutput)
}
// Scope for dns deterministic name hash calculation. The only possible value is `TenantReuse`. Defaults to `TenantReuse`.
func (o GrafanaOutput) AutoGeneratedDomainNameLabelScope() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Grafana) pulumi.StringPtrOutput { return v.AutoGeneratedDomainNameLabelScope }).(pulumi.StringPtrOutput)
}
// A `azureMonitorWorkspaceIntegrations` block as defined below.
func (o GrafanaOutput) AzureMonitorWorkspaceIntegrations() GrafanaAzureMonitorWorkspaceIntegrationArrayOutput {
return o.ApplyT(func(v *Grafana) GrafanaAzureMonitorWorkspaceIntegrationArrayOutput {
return v.AzureMonitorWorkspaceIntegrations
}).(GrafanaAzureMonitorWorkspaceIntegrationArrayOutput)
}
// Whether to enable the Grafana instance to use deterministic outbound IPs. Defaults to `false`.
func (o GrafanaOutput) DeterministicOutboundIpEnabled() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *Grafana) pulumi.BoolPtrOutput { return v.DeterministicOutboundIpEnabled }).(pulumi.BoolPtrOutput)
}
// The endpoint of the Grafana instance.
func (o GrafanaOutput) Endpoint() pulumi.StringOutput {
return o.ApplyT(func(v *Grafana) pulumi.StringOutput { return v.Endpoint }).(pulumi.StringOutput)
}
// The Grafana software version.
func (o GrafanaOutput) GrafanaVersion() pulumi.StringOutput {
return o.ApplyT(func(v *Grafana) pulumi.StringOutput { return v.GrafanaVersion }).(pulumi.StringOutput)
}
// An `identity` block as defined below. Changing this forces a new Dashboard Grafana to be created.
func (o GrafanaOutput) Identity() GrafanaIdentityPtrOutput {
return o.ApplyT(func(v *Grafana) GrafanaIdentityPtrOutput { return v.Identity }).(GrafanaIdentityPtrOutput)
}
// Specifies the Azure Region where the Dashboard Grafana should exist. Changing this forces a new Dashboard Grafana to be created.
func (o GrafanaOutput) Location() pulumi.StringOutput {
return o.ApplyT(func(v *Grafana) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput)
}
// Specifies the name which should be used for this Dashboard Grafana. Changing this forces a new Dashboard Grafana to be created.
func (o GrafanaOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v *Grafana) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
}
// List of outbound IPs if deterministicOutboundIP is enabled.
func (o GrafanaOutput) OutboundIps() pulumi.StringArrayOutput {
return o.ApplyT(func(v *Grafana) pulumi.StringArrayOutput { return v.OutboundIps }).(pulumi.StringArrayOutput)
}
// Whether to enable traffic over the public interface. Defaults to `true`.
func (o GrafanaOutput) PublicNetworkAccessEnabled() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *Grafana) pulumi.BoolPtrOutput { return v.PublicNetworkAccessEnabled }).(pulumi.BoolPtrOutput)
}
// Specifies the name of the Resource Group where the Dashboard Grafana should exist. Changing this forces a new Dashboard Grafana to be created.
func (o GrafanaOutput) ResourceGroupName() pulumi.StringOutput {
return o.ApplyT(func(v *Grafana) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput)
}
// The name of the SKU used for the Grafana instance. The only possible value is `Standard`. Defaults to `Standard`. Changing this forces a new Dashboard Grafana to be created.
func (o GrafanaOutput) Sku() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Grafana) pulumi.StringPtrOutput { return v.Sku }).(pulumi.StringPtrOutput)
}
// A mapping of tags which should be assigned to the Dashboard Grafana.
func (o GrafanaOutput) Tags() pulumi.StringMapOutput {
return o.ApplyT(func(v *Grafana) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput)
}
// Whether to enable the zone redundancy setting of the Grafana instance. Defaults to `false`. Changing this forces a new Dashboard Grafana to be created.
func (o GrafanaOutput) ZoneRedundancyEnabled() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *Grafana) pulumi.BoolPtrOutput { return v.ZoneRedundancyEnabled }).(pulumi.BoolPtrOutput)
}
type GrafanaArrayOutput struct{ *pulumi.OutputState }
func (GrafanaArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*Grafana)(nil)).Elem()
}
func (o GrafanaArrayOutput) ToGrafanaArrayOutput() GrafanaArrayOutput {
return o
}
func (o GrafanaArrayOutput) ToGrafanaArrayOutputWithContext(ctx context.Context) GrafanaArrayOutput {
return o
}
func (o GrafanaArrayOutput) Index(i pulumi.IntInput) GrafanaOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *Grafana {
return vs[0].([]*Grafana)[vs[1].(int)]
}).(GrafanaOutput)
}
type GrafanaMapOutput struct{ *pulumi.OutputState }
func (GrafanaMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*Grafana)(nil)).Elem()
}
func (o GrafanaMapOutput) ToGrafanaMapOutput() GrafanaMapOutput {
return o
}
func (o GrafanaMapOutput) ToGrafanaMapOutputWithContext(ctx context.Context) GrafanaMapOutput {
return o
}
func (o GrafanaMapOutput) MapIndex(k pulumi.StringInput) GrafanaOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *Grafana {
return vs[0].(map[string]*Grafana)[vs[1].(string)]
}).(GrafanaOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*GrafanaInput)(nil)).Elem(), &Grafana{})
pulumi.RegisterInputType(reflect.TypeOf((*GrafanaArrayInput)(nil)).Elem(), GrafanaArray{})
pulumi.RegisterInputType(reflect.TypeOf((*GrafanaMapInput)(nil)).Elem(), GrafanaMap{})
pulumi.RegisterOutputType(GrafanaOutput{})
pulumi.RegisterOutputType(GrafanaArrayOutput{})
pulumi.RegisterOutputType(GrafanaMapOutput{})
}