-
Notifications
You must be signed in to change notification settings - Fork 51
/
kafkaCluster.go
704 lines (633 loc) · 35 KB
/
kafkaCluster.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
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
// 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 hdinsight
import (
"context"
"reflect"
"errors"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Manages a HDInsight Kafka Cluster.
//
// ## 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/hdinsight"
// "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/storage"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
// Name: pulumi.String("example-resources"),
// Location: pulumi.String("West Europe"),
// })
// if err != nil {
// return err
// }
// exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{
// Name: pulumi.String("hdinsightstor"),
// ResourceGroupName: example.Name,
// Location: example.Location,
// AccountTier: pulumi.String("Standard"),
// AccountReplicationType: pulumi.String("LRS"),
// })
// if err != nil {
// return err
// }
// exampleContainer, err := storage.NewContainer(ctx, "example", &storage.ContainerArgs{
// Name: pulumi.String("hdinsight"),
// StorageAccountName: exampleAccount.Name,
// ContainerAccessType: pulumi.String("private"),
// })
// if err != nil {
// return err
// }
// _, err = hdinsight.NewKafkaCluster(ctx, "example", &hdinsight.KafkaClusterArgs{
// Name: pulumi.String("example-hdicluster"),
// ResourceGroupName: example.Name,
// Location: example.Location,
// ClusterVersion: pulumi.String("4.0"),
// Tier: pulumi.String("Standard"),
// ComponentVersion: &hdinsight.KafkaClusterComponentVersionArgs{
// Kafka: pulumi.String("2.1"),
// },
// Gateway: &hdinsight.KafkaClusterGatewayArgs{
// Username: pulumi.String("acctestusrgw"),
// Password: pulumi.String("Password123!"),
// },
// StorageAccounts: hdinsight.KafkaClusterStorageAccountArray{
// &hdinsight.KafkaClusterStorageAccountArgs{
// StorageContainerId: exampleContainer.ID(),
// StorageAccountKey: exampleAccount.PrimaryAccessKey,
// IsDefault: pulumi.Bool(true),
// },
// },
// Roles: &hdinsight.KafkaClusterRolesArgs{
// HeadNode: &hdinsight.KafkaClusterRolesHeadNodeArgs{
// VmSize: pulumi.String("Standard_D3_V2"),
// Username: pulumi.String("acctestusrvm"),
// Password: pulumi.String("AccTestvdSC4daf986!"),
// },
// WorkerNode: &hdinsight.KafkaClusterRolesWorkerNodeArgs{
// VmSize: pulumi.String("Standard_D3_V2"),
// Username: pulumi.String("acctestusrvm"),
// Password: pulumi.String("AccTestvdSC4daf986!"),
// NumberOfDisksPerNode: pulumi.Int(3),
// TargetInstanceCount: pulumi.Int(3),
// },
// ZookeeperNode: &hdinsight.KafkaClusterRolesZookeeperNodeArgs{
// VmSize: pulumi.String("Standard_D3_V2"),
// Username: pulumi.String("acctestusrvm"),
// Password: pulumi.String("AccTestvdSC4daf986!"),
// },
// },
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
//
// ## Import
//
// HDInsight Kafka Clusters can be imported using the `resource id`, e.g.
//
// ```sh
// $ pulumi import azure:hdinsight/kafkaCluster:KafkaCluster example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.HDInsight/clusters/cluster1
// ```
type KafkaCluster struct {
pulumi.CustomResourceState
// Specifies the Version of HDInsights which should be used for this Cluster. Changing this forces a new resource to be created.
ClusterVersion pulumi.StringOutput `pulumi:"clusterVersion"`
// A `componentVersion` block as defined below.
ComponentVersion KafkaClusterComponentVersionOutput `pulumi:"componentVersion"`
// A `computeIsolation` block as defined below.
ComputeIsolation KafkaClusterComputeIsolationPtrOutput `pulumi:"computeIsolation"`
// One or more `diskEncryption` block as defined below.
//
// > **NOTE:** Starting on June 30, 2020, Azure HDInsight will enforce TLS 1.2 or later versions for all HTTPS connections. For more information, see [Azure HDInsight TLS 1.2 Enforcement](https://azure.microsoft.com/en-us/updates/azure-hdinsight-tls-12-enforcement/).
DiskEncryptions KafkaClusterDiskEncryptionArrayOutput `pulumi:"diskEncryptions"`
// Whether encryption in transit is enabled for this HDInsight Kafka Cluster. Changing this forces a new resource to be created.
EncryptionInTransitEnabled pulumi.BoolPtrOutput `pulumi:"encryptionInTransitEnabled"`
// An `extension` block as defined below.
Extension KafkaClusterExtensionPtrOutput `pulumi:"extension"`
// A `gateway` block as defined below.
Gateway KafkaClusterGatewayOutput `pulumi:"gateway"`
// The HTTPS Connectivity Endpoint for this HDInsight Kafka Cluster.
HttpsEndpoint pulumi.StringOutput `pulumi:"httpsEndpoint"`
// The Kafka Rest Proxy Endpoint for this HDInsight Kafka Cluster.
KafkaRestProxyEndpoint pulumi.StringOutput `pulumi:"kafkaRestProxyEndpoint"`
// Specifies the Azure Region which this HDInsight Kafka Cluster should exist. Changing this forces a new resource to be created.
Location pulumi.StringOutput `pulumi:"location"`
// A `metastores` block as defined below.
Metastores KafkaClusterMetastoresPtrOutput `pulumi:"metastores"`
// A `monitor` block as defined below.
Monitor KafkaClusterMonitorPtrOutput `pulumi:"monitor"`
// Specifies the name for this HDInsight Kafka Cluster. Changing this forces a new resource to be created.
Name pulumi.StringOutput `pulumi:"name"`
// A `network` block as defined below.
Network KafkaClusterNetworkPtrOutput `pulumi:"network"`
// A `privateLinkConfiguration` block as defined below.
PrivateLinkConfiguration KafkaClusterPrivateLinkConfigurationPtrOutput `pulumi:"privateLinkConfiguration"`
// Specifies the name of the Resource Group in which this HDInsight Kafka Cluster should exist. Changing this forces a new resource to be created.
ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
// A `restProxy` block as defined below.
RestProxy KafkaClusterRestProxyPtrOutput `pulumi:"restProxy"`
// A `roles` block as defined below.
//
// Deprecated: `kafkaManagementNode` will be removed in version 4.0 of the AzureRM Provider since it no longer support configurations from the user
Roles KafkaClusterRolesOutput `pulumi:"roles"`
// A `securityProfile` block as defined below. Changing this forces a new resource to be created.
SecurityProfile KafkaClusterSecurityProfilePtrOutput `pulumi:"securityProfile"`
// The SSH Connectivity Endpoint for this HDInsight Kafka Cluster.
SshEndpoint pulumi.StringOutput `pulumi:"sshEndpoint"`
// A `storageAccountGen2` block as defined below.
StorageAccountGen2 KafkaClusterStorageAccountGen2PtrOutput `pulumi:"storageAccountGen2"`
// One or more `storageAccount` block as defined below.
StorageAccounts KafkaClusterStorageAccountArrayOutput `pulumi:"storageAccounts"`
// A map of Tags which should be assigned to this HDInsight Kafka Cluster.
Tags pulumi.StringMapOutput `pulumi:"tags"`
// Specifies the Tier which should be used for this HDInsight Kafka Cluster. Possible values are `Standard` or `Premium`. Changing this forces a new resource to be created.
Tier pulumi.StringOutput `pulumi:"tier"`
// The minimal supported TLS version. Possible values are `1.0`, `1.1` or `1.2`. Changing this forces a new resource to be created.
TlsMinVersion pulumi.StringPtrOutput `pulumi:"tlsMinVersion"`
}
// NewKafkaCluster registers a new resource with the given unique name, arguments, and options.
func NewKafkaCluster(ctx *pulumi.Context,
name string, args *KafkaClusterArgs, opts ...pulumi.ResourceOption) (*KafkaCluster, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.ClusterVersion == nil {
return nil, errors.New("invalid value for required argument 'ClusterVersion'")
}
if args.ComponentVersion == nil {
return nil, errors.New("invalid value for required argument 'ComponentVersion'")
}
if args.Gateway == nil {
return nil, errors.New("invalid value for required argument 'Gateway'")
}
if args.ResourceGroupName == nil {
return nil, errors.New("invalid value for required argument 'ResourceGroupName'")
}
if args.Roles == nil {
return nil, errors.New("invalid value for required argument 'Roles'")
}
if args.Tier == nil {
return nil, errors.New("invalid value for required argument 'Tier'")
}
opts = internal.PkgResourceDefaultOpts(opts)
var resource KafkaCluster
err := ctx.RegisterResource("azure:hdinsight/kafkaCluster:KafkaCluster", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetKafkaCluster gets an existing KafkaCluster 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 GetKafkaCluster(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *KafkaClusterState, opts ...pulumi.ResourceOption) (*KafkaCluster, error) {
var resource KafkaCluster
err := ctx.ReadResource("azure:hdinsight/kafkaCluster:KafkaCluster", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering KafkaCluster resources.
type kafkaClusterState struct {
// Specifies the Version of HDInsights which should be used for this Cluster. Changing this forces a new resource to be created.
ClusterVersion *string `pulumi:"clusterVersion"`
// A `componentVersion` block as defined below.
ComponentVersion *KafkaClusterComponentVersion `pulumi:"componentVersion"`
// A `computeIsolation` block as defined below.
ComputeIsolation *KafkaClusterComputeIsolation `pulumi:"computeIsolation"`
// One or more `diskEncryption` block as defined below.
//
// > **NOTE:** Starting on June 30, 2020, Azure HDInsight will enforce TLS 1.2 or later versions for all HTTPS connections. For more information, see [Azure HDInsight TLS 1.2 Enforcement](https://azure.microsoft.com/en-us/updates/azure-hdinsight-tls-12-enforcement/).
DiskEncryptions []KafkaClusterDiskEncryption `pulumi:"diskEncryptions"`
// Whether encryption in transit is enabled for this HDInsight Kafka Cluster. Changing this forces a new resource to be created.
EncryptionInTransitEnabled *bool `pulumi:"encryptionInTransitEnabled"`
// An `extension` block as defined below.
Extension *KafkaClusterExtension `pulumi:"extension"`
// A `gateway` block as defined below.
Gateway *KafkaClusterGateway `pulumi:"gateway"`
// The HTTPS Connectivity Endpoint for this HDInsight Kafka Cluster.
HttpsEndpoint *string `pulumi:"httpsEndpoint"`
// The Kafka Rest Proxy Endpoint for this HDInsight Kafka Cluster.
KafkaRestProxyEndpoint *string `pulumi:"kafkaRestProxyEndpoint"`
// Specifies the Azure Region which this HDInsight Kafka Cluster should exist. Changing this forces a new resource to be created.
Location *string `pulumi:"location"`
// A `metastores` block as defined below.
Metastores *KafkaClusterMetastores `pulumi:"metastores"`
// A `monitor` block as defined below.
Monitor *KafkaClusterMonitor `pulumi:"monitor"`
// Specifies the name for this HDInsight Kafka Cluster. Changing this forces a new resource to be created.
Name *string `pulumi:"name"`
// A `network` block as defined below.
Network *KafkaClusterNetwork `pulumi:"network"`
// A `privateLinkConfiguration` block as defined below.
PrivateLinkConfiguration *KafkaClusterPrivateLinkConfiguration `pulumi:"privateLinkConfiguration"`
// Specifies the name of the Resource Group in which this HDInsight Kafka Cluster should exist. Changing this forces a new resource to be created.
ResourceGroupName *string `pulumi:"resourceGroupName"`
// A `restProxy` block as defined below.
RestProxy *KafkaClusterRestProxy `pulumi:"restProxy"`
// A `roles` block as defined below.
//
// Deprecated: `kafkaManagementNode` will be removed in version 4.0 of the AzureRM Provider since it no longer support configurations from the user
Roles *KafkaClusterRoles `pulumi:"roles"`
// A `securityProfile` block as defined below. Changing this forces a new resource to be created.
SecurityProfile *KafkaClusterSecurityProfile `pulumi:"securityProfile"`
// The SSH Connectivity Endpoint for this HDInsight Kafka Cluster.
SshEndpoint *string `pulumi:"sshEndpoint"`
// A `storageAccountGen2` block as defined below.
StorageAccountGen2 *KafkaClusterStorageAccountGen2 `pulumi:"storageAccountGen2"`
// One or more `storageAccount` block as defined below.
StorageAccounts []KafkaClusterStorageAccount `pulumi:"storageAccounts"`
// A map of Tags which should be assigned to this HDInsight Kafka Cluster.
Tags map[string]string `pulumi:"tags"`
// Specifies the Tier which should be used for this HDInsight Kafka Cluster. Possible values are `Standard` or `Premium`. Changing this forces a new resource to be created.
Tier *string `pulumi:"tier"`
// The minimal supported TLS version. Possible values are `1.0`, `1.1` or `1.2`. Changing this forces a new resource to be created.
TlsMinVersion *string `pulumi:"tlsMinVersion"`
}
type KafkaClusterState struct {
// Specifies the Version of HDInsights which should be used for this Cluster. Changing this forces a new resource to be created.
ClusterVersion pulumi.StringPtrInput
// A `componentVersion` block as defined below.
ComponentVersion KafkaClusterComponentVersionPtrInput
// A `computeIsolation` block as defined below.
ComputeIsolation KafkaClusterComputeIsolationPtrInput
// One or more `diskEncryption` block as defined below.
//
// > **NOTE:** Starting on June 30, 2020, Azure HDInsight will enforce TLS 1.2 or later versions for all HTTPS connections. For more information, see [Azure HDInsight TLS 1.2 Enforcement](https://azure.microsoft.com/en-us/updates/azure-hdinsight-tls-12-enforcement/).
DiskEncryptions KafkaClusterDiskEncryptionArrayInput
// Whether encryption in transit is enabled for this HDInsight Kafka Cluster. Changing this forces a new resource to be created.
EncryptionInTransitEnabled pulumi.BoolPtrInput
// An `extension` block as defined below.
Extension KafkaClusterExtensionPtrInput
// A `gateway` block as defined below.
Gateway KafkaClusterGatewayPtrInput
// The HTTPS Connectivity Endpoint for this HDInsight Kafka Cluster.
HttpsEndpoint pulumi.StringPtrInput
// The Kafka Rest Proxy Endpoint for this HDInsight Kafka Cluster.
KafkaRestProxyEndpoint pulumi.StringPtrInput
// Specifies the Azure Region which this HDInsight Kafka Cluster should exist. Changing this forces a new resource to be created.
Location pulumi.StringPtrInput
// A `metastores` block as defined below.
Metastores KafkaClusterMetastoresPtrInput
// A `monitor` block as defined below.
Monitor KafkaClusterMonitorPtrInput
// Specifies the name for this HDInsight Kafka Cluster. Changing this forces a new resource to be created.
Name pulumi.StringPtrInput
// A `network` block as defined below.
Network KafkaClusterNetworkPtrInput
// A `privateLinkConfiguration` block as defined below.
PrivateLinkConfiguration KafkaClusterPrivateLinkConfigurationPtrInput
// Specifies the name of the Resource Group in which this HDInsight Kafka Cluster should exist. Changing this forces a new resource to be created.
ResourceGroupName pulumi.StringPtrInput
// A `restProxy` block as defined below.
RestProxy KafkaClusterRestProxyPtrInput
// A `roles` block as defined below.
//
// Deprecated: `kafkaManagementNode` will be removed in version 4.0 of the AzureRM Provider since it no longer support configurations from the user
Roles KafkaClusterRolesPtrInput
// A `securityProfile` block as defined below. Changing this forces a new resource to be created.
SecurityProfile KafkaClusterSecurityProfilePtrInput
// The SSH Connectivity Endpoint for this HDInsight Kafka Cluster.
SshEndpoint pulumi.StringPtrInput
// A `storageAccountGen2` block as defined below.
StorageAccountGen2 KafkaClusterStorageAccountGen2PtrInput
// One or more `storageAccount` block as defined below.
StorageAccounts KafkaClusterStorageAccountArrayInput
// A map of Tags which should be assigned to this HDInsight Kafka Cluster.
Tags pulumi.StringMapInput
// Specifies the Tier which should be used for this HDInsight Kafka Cluster. Possible values are `Standard` or `Premium`. Changing this forces a new resource to be created.
Tier pulumi.StringPtrInput
// The minimal supported TLS version. Possible values are `1.0`, `1.1` or `1.2`. Changing this forces a new resource to be created.
TlsMinVersion pulumi.StringPtrInput
}
func (KafkaClusterState) ElementType() reflect.Type {
return reflect.TypeOf((*kafkaClusterState)(nil)).Elem()
}
type kafkaClusterArgs struct {
// Specifies the Version of HDInsights which should be used for this Cluster. Changing this forces a new resource to be created.
ClusterVersion string `pulumi:"clusterVersion"`
// A `componentVersion` block as defined below.
ComponentVersion KafkaClusterComponentVersion `pulumi:"componentVersion"`
// A `computeIsolation` block as defined below.
ComputeIsolation *KafkaClusterComputeIsolation `pulumi:"computeIsolation"`
// One or more `diskEncryption` block as defined below.
//
// > **NOTE:** Starting on June 30, 2020, Azure HDInsight will enforce TLS 1.2 or later versions for all HTTPS connections. For more information, see [Azure HDInsight TLS 1.2 Enforcement](https://azure.microsoft.com/en-us/updates/azure-hdinsight-tls-12-enforcement/).
DiskEncryptions []KafkaClusterDiskEncryption `pulumi:"diskEncryptions"`
// Whether encryption in transit is enabled for this HDInsight Kafka Cluster. Changing this forces a new resource to be created.
EncryptionInTransitEnabled *bool `pulumi:"encryptionInTransitEnabled"`
// An `extension` block as defined below.
Extension *KafkaClusterExtension `pulumi:"extension"`
// A `gateway` block as defined below.
Gateway KafkaClusterGateway `pulumi:"gateway"`
// Specifies the Azure Region which this HDInsight Kafka Cluster should exist. Changing this forces a new resource to be created.
Location *string `pulumi:"location"`
// A `metastores` block as defined below.
Metastores *KafkaClusterMetastores `pulumi:"metastores"`
// A `monitor` block as defined below.
Monitor *KafkaClusterMonitor `pulumi:"monitor"`
// Specifies the name for this HDInsight Kafka Cluster. Changing this forces a new resource to be created.
Name *string `pulumi:"name"`
// A `network` block as defined below.
Network *KafkaClusterNetwork `pulumi:"network"`
// A `privateLinkConfiguration` block as defined below.
PrivateLinkConfiguration *KafkaClusterPrivateLinkConfiguration `pulumi:"privateLinkConfiguration"`
// Specifies the name of the Resource Group in which this HDInsight Kafka Cluster should exist. Changing this forces a new resource to be created.
ResourceGroupName string `pulumi:"resourceGroupName"`
// A `restProxy` block as defined below.
RestProxy *KafkaClusterRestProxy `pulumi:"restProxy"`
// A `roles` block as defined below.
//
// Deprecated: `kafkaManagementNode` will be removed in version 4.0 of the AzureRM Provider since it no longer support configurations from the user
Roles KafkaClusterRoles `pulumi:"roles"`
// A `securityProfile` block as defined below. Changing this forces a new resource to be created.
SecurityProfile *KafkaClusterSecurityProfile `pulumi:"securityProfile"`
// A `storageAccountGen2` block as defined below.
StorageAccountGen2 *KafkaClusterStorageAccountGen2 `pulumi:"storageAccountGen2"`
// One or more `storageAccount` block as defined below.
StorageAccounts []KafkaClusterStorageAccount `pulumi:"storageAccounts"`
// A map of Tags which should be assigned to this HDInsight Kafka Cluster.
Tags map[string]string `pulumi:"tags"`
// Specifies the Tier which should be used for this HDInsight Kafka Cluster. Possible values are `Standard` or `Premium`. Changing this forces a new resource to be created.
Tier string `pulumi:"tier"`
// The minimal supported TLS version. Possible values are `1.0`, `1.1` or `1.2`. Changing this forces a new resource to be created.
TlsMinVersion *string `pulumi:"tlsMinVersion"`
}
// The set of arguments for constructing a KafkaCluster resource.
type KafkaClusterArgs struct {
// Specifies the Version of HDInsights which should be used for this Cluster. Changing this forces a new resource to be created.
ClusterVersion pulumi.StringInput
// A `componentVersion` block as defined below.
ComponentVersion KafkaClusterComponentVersionInput
// A `computeIsolation` block as defined below.
ComputeIsolation KafkaClusterComputeIsolationPtrInput
// One or more `diskEncryption` block as defined below.
//
// > **NOTE:** Starting on June 30, 2020, Azure HDInsight will enforce TLS 1.2 or later versions for all HTTPS connections. For more information, see [Azure HDInsight TLS 1.2 Enforcement](https://azure.microsoft.com/en-us/updates/azure-hdinsight-tls-12-enforcement/).
DiskEncryptions KafkaClusterDiskEncryptionArrayInput
// Whether encryption in transit is enabled for this HDInsight Kafka Cluster. Changing this forces a new resource to be created.
EncryptionInTransitEnabled pulumi.BoolPtrInput
// An `extension` block as defined below.
Extension KafkaClusterExtensionPtrInput
// A `gateway` block as defined below.
Gateway KafkaClusterGatewayInput
// Specifies the Azure Region which this HDInsight Kafka Cluster should exist. Changing this forces a new resource to be created.
Location pulumi.StringPtrInput
// A `metastores` block as defined below.
Metastores KafkaClusterMetastoresPtrInput
// A `monitor` block as defined below.
Monitor KafkaClusterMonitorPtrInput
// Specifies the name for this HDInsight Kafka Cluster. Changing this forces a new resource to be created.
Name pulumi.StringPtrInput
// A `network` block as defined below.
Network KafkaClusterNetworkPtrInput
// A `privateLinkConfiguration` block as defined below.
PrivateLinkConfiguration KafkaClusterPrivateLinkConfigurationPtrInput
// Specifies the name of the Resource Group in which this HDInsight Kafka Cluster should exist. Changing this forces a new resource to be created.
ResourceGroupName pulumi.StringInput
// A `restProxy` block as defined below.
RestProxy KafkaClusterRestProxyPtrInput
// A `roles` block as defined below.
//
// Deprecated: `kafkaManagementNode` will be removed in version 4.0 of the AzureRM Provider since it no longer support configurations from the user
Roles KafkaClusterRolesInput
// A `securityProfile` block as defined below. Changing this forces a new resource to be created.
SecurityProfile KafkaClusterSecurityProfilePtrInput
// A `storageAccountGen2` block as defined below.
StorageAccountGen2 KafkaClusterStorageAccountGen2PtrInput
// One or more `storageAccount` block as defined below.
StorageAccounts KafkaClusterStorageAccountArrayInput
// A map of Tags which should be assigned to this HDInsight Kafka Cluster.
Tags pulumi.StringMapInput
// Specifies the Tier which should be used for this HDInsight Kafka Cluster. Possible values are `Standard` or `Premium`. Changing this forces a new resource to be created.
Tier pulumi.StringInput
// The minimal supported TLS version. Possible values are `1.0`, `1.1` or `1.2`. Changing this forces a new resource to be created.
TlsMinVersion pulumi.StringPtrInput
}
func (KafkaClusterArgs) ElementType() reflect.Type {
return reflect.TypeOf((*kafkaClusterArgs)(nil)).Elem()
}
type KafkaClusterInput interface {
pulumi.Input
ToKafkaClusterOutput() KafkaClusterOutput
ToKafkaClusterOutputWithContext(ctx context.Context) KafkaClusterOutput
}
func (*KafkaCluster) ElementType() reflect.Type {
return reflect.TypeOf((**KafkaCluster)(nil)).Elem()
}
func (i *KafkaCluster) ToKafkaClusterOutput() KafkaClusterOutput {
return i.ToKafkaClusterOutputWithContext(context.Background())
}
func (i *KafkaCluster) ToKafkaClusterOutputWithContext(ctx context.Context) KafkaClusterOutput {
return pulumi.ToOutputWithContext(ctx, i).(KafkaClusterOutput)
}
// KafkaClusterArrayInput is an input type that accepts KafkaClusterArray and KafkaClusterArrayOutput values.
// You can construct a concrete instance of `KafkaClusterArrayInput` via:
//
// KafkaClusterArray{ KafkaClusterArgs{...} }
type KafkaClusterArrayInput interface {
pulumi.Input
ToKafkaClusterArrayOutput() KafkaClusterArrayOutput
ToKafkaClusterArrayOutputWithContext(context.Context) KafkaClusterArrayOutput
}
type KafkaClusterArray []KafkaClusterInput
func (KafkaClusterArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*KafkaCluster)(nil)).Elem()
}
func (i KafkaClusterArray) ToKafkaClusterArrayOutput() KafkaClusterArrayOutput {
return i.ToKafkaClusterArrayOutputWithContext(context.Background())
}
func (i KafkaClusterArray) ToKafkaClusterArrayOutputWithContext(ctx context.Context) KafkaClusterArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(KafkaClusterArrayOutput)
}
// KafkaClusterMapInput is an input type that accepts KafkaClusterMap and KafkaClusterMapOutput values.
// You can construct a concrete instance of `KafkaClusterMapInput` via:
//
// KafkaClusterMap{ "key": KafkaClusterArgs{...} }
type KafkaClusterMapInput interface {
pulumi.Input
ToKafkaClusterMapOutput() KafkaClusterMapOutput
ToKafkaClusterMapOutputWithContext(context.Context) KafkaClusterMapOutput
}
type KafkaClusterMap map[string]KafkaClusterInput
func (KafkaClusterMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*KafkaCluster)(nil)).Elem()
}
func (i KafkaClusterMap) ToKafkaClusterMapOutput() KafkaClusterMapOutput {
return i.ToKafkaClusterMapOutputWithContext(context.Background())
}
func (i KafkaClusterMap) ToKafkaClusterMapOutputWithContext(ctx context.Context) KafkaClusterMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(KafkaClusterMapOutput)
}
type KafkaClusterOutput struct{ *pulumi.OutputState }
func (KafkaClusterOutput) ElementType() reflect.Type {
return reflect.TypeOf((**KafkaCluster)(nil)).Elem()
}
func (o KafkaClusterOutput) ToKafkaClusterOutput() KafkaClusterOutput {
return o
}
func (o KafkaClusterOutput) ToKafkaClusterOutputWithContext(ctx context.Context) KafkaClusterOutput {
return o
}
// Specifies the Version of HDInsights which should be used for this Cluster. Changing this forces a new resource to be created.
func (o KafkaClusterOutput) ClusterVersion() pulumi.StringOutput {
return o.ApplyT(func(v *KafkaCluster) pulumi.StringOutput { return v.ClusterVersion }).(pulumi.StringOutput)
}
// A `componentVersion` block as defined below.
func (o KafkaClusterOutput) ComponentVersion() KafkaClusterComponentVersionOutput {
return o.ApplyT(func(v *KafkaCluster) KafkaClusterComponentVersionOutput { return v.ComponentVersion }).(KafkaClusterComponentVersionOutput)
}
// A `computeIsolation` block as defined below.
func (o KafkaClusterOutput) ComputeIsolation() KafkaClusterComputeIsolationPtrOutput {
return o.ApplyT(func(v *KafkaCluster) KafkaClusterComputeIsolationPtrOutput { return v.ComputeIsolation }).(KafkaClusterComputeIsolationPtrOutput)
}
// One or more `diskEncryption` block as defined below.
//
// > **NOTE:** Starting on June 30, 2020, Azure HDInsight will enforce TLS 1.2 or later versions for all HTTPS connections. For more information, see [Azure HDInsight TLS 1.2 Enforcement](https://azure.microsoft.com/en-us/updates/azure-hdinsight-tls-12-enforcement/).
func (o KafkaClusterOutput) DiskEncryptions() KafkaClusterDiskEncryptionArrayOutput {
return o.ApplyT(func(v *KafkaCluster) KafkaClusterDiskEncryptionArrayOutput { return v.DiskEncryptions }).(KafkaClusterDiskEncryptionArrayOutput)
}
// Whether encryption in transit is enabled for this HDInsight Kafka Cluster. Changing this forces a new resource to be created.
func (o KafkaClusterOutput) EncryptionInTransitEnabled() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *KafkaCluster) pulumi.BoolPtrOutput { return v.EncryptionInTransitEnabled }).(pulumi.BoolPtrOutput)
}
// An `extension` block as defined below.
func (o KafkaClusterOutput) Extension() KafkaClusterExtensionPtrOutput {
return o.ApplyT(func(v *KafkaCluster) KafkaClusterExtensionPtrOutput { return v.Extension }).(KafkaClusterExtensionPtrOutput)
}
// A `gateway` block as defined below.
func (o KafkaClusterOutput) Gateway() KafkaClusterGatewayOutput {
return o.ApplyT(func(v *KafkaCluster) KafkaClusterGatewayOutput { return v.Gateway }).(KafkaClusterGatewayOutput)
}
// The HTTPS Connectivity Endpoint for this HDInsight Kafka Cluster.
func (o KafkaClusterOutput) HttpsEndpoint() pulumi.StringOutput {
return o.ApplyT(func(v *KafkaCluster) pulumi.StringOutput { return v.HttpsEndpoint }).(pulumi.StringOutput)
}
// The Kafka Rest Proxy Endpoint for this HDInsight Kafka Cluster.
func (o KafkaClusterOutput) KafkaRestProxyEndpoint() pulumi.StringOutput {
return o.ApplyT(func(v *KafkaCluster) pulumi.StringOutput { return v.KafkaRestProxyEndpoint }).(pulumi.StringOutput)
}
// Specifies the Azure Region which this HDInsight Kafka Cluster should exist. Changing this forces a new resource to be created.
func (o KafkaClusterOutput) Location() pulumi.StringOutput {
return o.ApplyT(func(v *KafkaCluster) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput)
}
// A `metastores` block as defined below.
func (o KafkaClusterOutput) Metastores() KafkaClusterMetastoresPtrOutput {
return o.ApplyT(func(v *KafkaCluster) KafkaClusterMetastoresPtrOutput { return v.Metastores }).(KafkaClusterMetastoresPtrOutput)
}
// A `monitor` block as defined below.
func (o KafkaClusterOutput) Monitor() KafkaClusterMonitorPtrOutput {
return o.ApplyT(func(v *KafkaCluster) KafkaClusterMonitorPtrOutput { return v.Monitor }).(KafkaClusterMonitorPtrOutput)
}
// Specifies the name for this HDInsight Kafka Cluster. Changing this forces a new resource to be created.
func (o KafkaClusterOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v *KafkaCluster) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
}
// A `network` block as defined below.
func (o KafkaClusterOutput) Network() KafkaClusterNetworkPtrOutput {
return o.ApplyT(func(v *KafkaCluster) KafkaClusterNetworkPtrOutput { return v.Network }).(KafkaClusterNetworkPtrOutput)
}
// A `privateLinkConfiguration` block as defined below.
func (o KafkaClusterOutput) PrivateLinkConfiguration() KafkaClusterPrivateLinkConfigurationPtrOutput {
return o.ApplyT(func(v *KafkaCluster) KafkaClusterPrivateLinkConfigurationPtrOutput { return v.PrivateLinkConfiguration }).(KafkaClusterPrivateLinkConfigurationPtrOutput)
}
// Specifies the name of the Resource Group in which this HDInsight Kafka Cluster should exist. Changing this forces a new resource to be created.
func (o KafkaClusterOutput) ResourceGroupName() pulumi.StringOutput {
return o.ApplyT(func(v *KafkaCluster) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput)
}
// A `restProxy` block as defined below.
func (o KafkaClusterOutput) RestProxy() KafkaClusterRestProxyPtrOutput {
return o.ApplyT(func(v *KafkaCluster) KafkaClusterRestProxyPtrOutput { return v.RestProxy }).(KafkaClusterRestProxyPtrOutput)
}
// A `roles` block as defined below.
//
// Deprecated: `kafkaManagementNode` will be removed in version 4.0 of the AzureRM Provider since it no longer support configurations from the user
func (o KafkaClusterOutput) Roles() KafkaClusterRolesOutput {
return o.ApplyT(func(v *KafkaCluster) KafkaClusterRolesOutput { return v.Roles }).(KafkaClusterRolesOutput)
}
// A `securityProfile` block as defined below. Changing this forces a new resource to be created.
func (o KafkaClusterOutput) SecurityProfile() KafkaClusterSecurityProfilePtrOutput {
return o.ApplyT(func(v *KafkaCluster) KafkaClusterSecurityProfilePtrOutput { return v.SecurityProfile }).(KafkaClusterSecurityProfilePtrOutput)
}
// The SSH Connectivity Endpoint for this HDInsight Kafka Cluster.
func (o KafkaClusterOutput) SshEndpoint() pulumi.StringOutput {
return o.ApplyT(func(v *KafkaCluster) pulumi.StringOutput { return v.SshEndpoint }).(pulumi.StringOutput)
}
// A `storageAccountGen2` block as defined below.
func (o KafkaClusterOutput) StorageAccountGen2() KafkaClusterStorageAccountGen2PtrOutput {
return o.ApplyT(func(v *KafkaCluster) KafkaClusterStorageAccountGen2PtrOutput { return v.StorageAccountGen2 }).(KafkaClusterStorageAccountGen2PtrOutput)
}
// One or more `storageAccount` block as defined below.
func (o KafkaClusterOutput) StorageAccounts() KafkaClusterStorageAccountArrayOutput {
return o.ApplyT(func(v *KafkaCluster) KafkaClusterStorageAccountArrayOutput { return v.StorageAccounts }).(KafkaClusterStorageAccountArrayOutput)
}
// A map of Tags which should be assigned to this HDInsight Kafka Cluster.
func (o KafkaClusterOutput) Tags() pulumi.StringMapOutput {
return o.ApplyT(func(v *KafkaCluster) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput)
}
// Specifies the Tier which should be used for this HDInsight Kafka Cluster. Possible values are `Standard` or `Premium`. Changing this forces a new resource to be created.
func (o KafkaClusterOutput) Tier() pulumi.StringOutput {
return o.ApplyT(func(v *KafkaCluster) pulumi.StringOutput { return v.Tier }).(pulumi.StringOutput)
}
// The minimal supported TLS version. Possible values are `1.0`, `1.1` or `1.2`. Changing this forces a new resource to be created.
func (o KafkaClusterOutput) TlsMinVersion() pulumi.StringPtrOutput {
return o.ApplyT(func(v *KafkaCluster) pulumi.StringPtrOutput { return v.TlsMinVersion }).(pulumi.StringPtrOutput)
}
type KafkaClusterArrayOutput struct{ *pulumi.OutputState }
func (KafkaClusterArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*KafkaCluster)(nil)).Elem()
}
func (o KafkaClusterArrayOutput) ToKafkaClusterArrayOutput() KafkaClusterArrayOutput {
return o
}
func (o KafkaClusterArrayOutput) ToKafkaClusterArrayOutputWithContext(ctx context.Context) KafkaClusterArrayOutput {
return o
}
func (o KafkaClusterArrayOutput) Index(i pulumi.IntInput) KafkaClusterOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *KafkaCluster {
return vs[0].([]*KafkaCluster)[vs[1].(int)]
}).(KafkaClusterOutput)
}
type KafkaClusterMapOutput struct{ *pulumi.OutputState }
func (KafkaClusterMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*KafkaCluster)(nil)).Elem()
}
func (o KafkaClusterMapOutput) ToKafkaClusterMapOutput() KafkaClusterMapOutput {
return o
}
func (o KafkaClusterMapOutput) ToKafkaClusterMapOutputWithContext(ctx context.Context) KafkaClusterMapOutput {
return o
}
func (o KafkaClusterMapOutput) MapIndex(k pulumi.StringInput) KafkaClusterOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *KafkaCluster {
return vs[0].(map[string]*KafkaCluster)[vs[1].(string)]
}).(KafkaClusterOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*KafkaClusterInput)(nil)).Elem(), &KafkaCluster{})
pulumi.RegisterInputType(reflect.TypeOf((*KafkaClusterArrayInput)(nil)).Elem(), KafkaClusterArray{})
pulumi.RegisterInputType(reflect.TypeOf((*KafkaClusterMapInput)(nil)).Elem(), KafkaClusterMap{})
pulumi.RegisterOutputType(KafkaClusterOutput{})
pulumi.RegisterOutputType(KafkaClusterArrayOutput{})
pulumi.RegisterOutputType(KafkaClusterMapOutput{})
}