/
privateCloud.go
539 lines (474 loc) · 28.6 KB
/
privateCloud.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
// 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 avs
import (
"context"
"reflect"
"errors"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Manages an Azure VMware Solution Private Cloud.
//
// ## Example Usage
//
// > **NOTE :** Normal `pulumi up` could ignore this note. Please disable correlation request id for continuous operations in one build (like acctest). The continuous operations like `update` or `delete` could not be triggered when it shares the same `correlation-id` with its previous operation.
//
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/avs"
// "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
// "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
// }
// _, err = avs.NewPrivateCloud(ctx, "example", &avs.PrivateCloudArgs{
// Name: pulumi.String("example-vmware-private-cloud"),
// ResourceGroupName: example.Name,
// Location: example.Location,
// SkuName: pulumi.String("av36"),
// ManagementCluster: &avs.PrivateCloudManagementClusterArgs{
// Size: pulumi.Int(3),
// },
// NetworkSubnetCidr: pulumi.String("192.168.48.0/22"),
// InternetConnectionEnabled: pulumi.Bool(false),
// NsxtPassword: pulumi.String("QazWsx13$Edc"),
// VcenterPassword: pulumi.String("WsxEdc23$Rfv"),
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
//
// ## Import
//
// Azure VMware Solution Private Clouds can be imported using the `resource id`, e.g.
//
// ```sh
// $ pulumi import azure:avs/privateCloud:PrivateCloud example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/privateCloud1
// ```
type PrivateCloud struct {
pulumi.CustomResourceState
// A `circuit` block as defined below.
Circuits PrivateCloudCircuitArrayOutput `pulumi:"circuits"`
// The endpoint for the VMware HCX Cloud Manager.
HcxCloudManagerEndpoint pulumi.StringOutput `pulumi:"hcxCloudManagerEndpoint"`
// Is the Azure VMware Solution Private Cloud connected to the internet? This field can not be updated with `management_cluster[0].size` together.
// > **NOTE :** `internetConnectionEnabled` and `management_cluster[0].size` cannot be updated at the same time.
InternetConnectionEnabled pulumi.BoolPtrOutput `pulumi:"internetConnectionEnabled"`
// The Azure Region where the Azure VMware Solution Private Cloud should exist. Changing this forces a new Azure VMware Solution Private Cloud to be created.
Location pulumi.StringOutput `pulumi:"location"`
// A `managementCluster` block as defined below.
// > **NOTE :** `internetConnectionEnabled` and `management_cluster[0].size` cannot be updated at the same time.
ManagementCluster PrivateCloudManagementClusterOutput `pulumi:"managementCluster"`
// The network used to access VMware vCenter Server and NSX Manager.
ManagementSubnetCidr pulumi.StringOutput `pulumi:"managementSubnetCidr"`
// The name which should be used for this Azure VMware Solution Private Cloud. Changing this forces a new Azure VMware Solution Private Cloud to be created.
Name pulumi.StringOutput `pulumi:"name"`
// The subnet which should be unique across virtual network in your subscription as well as on-premise. Changing this forces a new Azure VMware Solution Private Cloud to be created.
NetworkSubnetCidr pulumi.StringOutput `pulumi:"networkSubnetCidr"`
// The thumbprint of the VMware NSX Manager SSL certificate.
NsxtCertificateThumbprint pulumi.StringOutput `pulumi:"nsxtCertificateThumbprint"`
// The endpoint for the VMware NSX Manager.
NsxtManagerEndpoint pulumi.StringOutput `pulumi:"nsxtManagerEndpoint"`
// The password of the VMware NSX Manager cloudadmin. Changing this forces a new Azure VMware Solution Private Cloud to be created.
NsxtPassword pulumi.StringPtrOutput `pulumi:"nsxtPassword"`
// The network which is used for virtual machine cold migration, cloning, and snapshot migration.
ProvisioningSubnetCidr pulumi.StringOutput `pulumi:"provisioningSubnetCidr"`
// The name of the Resource Group where the Azure VMware Solution Private Cloud should exist. Changing this forces a new Azure VMware Solution Private Cloud to be created.
ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
// The Name of the SKU used for this Azure VMware Solution Private Cloud. Possible values are `av20`, `av36`, `av36t`, `av36p`, `av36pt`, `av52`, `av52t`, and `av64`. Changing this forces a new Azure VMware Solution Private Cloud to be created.
SkuName pulumi.StringOutput `pulumi:"skuName"`
// A mapping of tags which should be assigned to the Azure VMware Solution Private Cloud.
Tags pulumi.StringMapOutput `pulumi:"tags"`
// The thumbprint of the VMware vCenter Server SSL certificate.
VcenterCertificateThumbprint pulumi.StringOutput `pulumi:"vcenterCertificateThumbprint"`
// The password of the VMware vCenter Server cloudadmin. Changing this forces a new Azure VMware Solution Private Cloud to be created.
VcenterPassword pulumi.StringPtrOutput `pulumi:"vcenterPassword"`
// The endpoint for VMware vCenter Server Appliance.
VcsaEndpoint pulumi.StringOutput `pulumi:"vcsaEndpoint"`
// The network which is used for live migration of virtual machines.
VmotionSubnetCidr pulumi.StringOutput `pulumi:"vmotionSubnetCidr"`
}
// NewPrivateCloud registers a new resource with the given unique name, arguments, and options.
func NewPrivateCloud(ctx *pulumi.Context,
name string, args *PrivateCloudArgs, opts ...pulumi.ResourceOption) (*PrivateCloud, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.ManagementCluster == nil {
return nil, errors.New("invalid value for required argument 'ManagementCluster'")
}
if args.NetworkSubnetCidr == nil {
return nil, errors.New("invalid value for required argument 'NetworkSubnetCidr'")
}
if args.ResourceGroupName == nil {
return nil, errors.New("invalid value for required argument 'ResourceGroupName'")
}
if args.SkuName == nil {
return nil, errors.New("invalid value for required argument 'SkuName'")
}
if args.NsxtPassword != nil {
args.NsxtPassword = pulumi.ToSecret(args.NsxtPassword).(pulumi.StringPtrInput)
}
if args.VcenterPassword != nil {
args.VcenterPassword = pulumi.ToSecret(args.VcenterPassword).(pulumi.StringPtrInput)
}
secrets := pulumi.AdditionalSecretOutputs([]string{
"nsxtPassword",
"vcenterPassword",
})
opts = append(opts, secrets)
opts = internal.PkgResourceDefaultOpts(opts)
var resource PrivateCloud
err := ctx.RegisterResource("azure:avs/privateCloud:PrivateCloud", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetPrivateCloud gets an existing PrivateCloud 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 GetPrivateCloud(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *PrivateCloudState, opts ...pulumi.ResourceOption) (*PrivateCloud, error) {
var resource PrivateCloud
err := ctx.ReadResource("azure:avs/privateCloud:PrivateCloud", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering PrivateCloud resources.
type privateCloudState struct {
// A `circuit` block as defined below.
Circuits []PrivateCloudCircuit `pulumi:"circuits"`
// The endpoint for the VMware HCX Cloud Manager.
HcxCloudManagerEndpoint *string `pulumi:"hcxCloudManagerEndpoint"`
// Is the Azure VMware Solution Private Cloud connected to the internet? This field can not be updated with `management_cluster[0].size` together.
// > **NOTE :** `internetConnectionEnabled` and `management_cluster[0].size` cannot be updated at the same time.
InternetConnectionEnabled *bool `pulumi:"internetConnectionEnabled"`
// The Azure Region where the Azure VMware Solution Private Cloud should exist. Changing this forces a new Azure VMware Solution Private Cloud to be created.
Location *string `pulumi:"location"`
// A `managementCluster` block as defined below.
// > **NOTE :** `internetConnectionEnabled` and `management_cluster[0].size` cannot be updated at the same time.
ManagementCluster *PrivateCloudManagementCluster `pulumi:"managementCluster"`
// The network used to access VMware vCenter Server and NSX Manager.
ManagementSubnetCidr *string `pulumi:"managementSubnetCidr"`
// The name which should be used for this Azure VMware Solution Private Cloud. Changing this forces a new Azure VMware Solution Private Cloud to be created.
Name *string `pulumi:"name"`
// The subnet which should be unique across virtual network in your subscription as well as on-premise. Changing this forces a new Azure VMware Solution Private Cloud to be created.
NetworkSubnetCidr *string `pulumi:"networkSubnetCidr"`
// The thumbprint of the VMware NSX Manager SSL certificate.
NsxtCertificateThumbprint *string `pulumi:"nsxtCertificateThumbprint"`
// The endpoint for the VMware NSX Manager.
NsxtManagerEndpoint *string `pulumi:"nsxtManagerEndpoint"`
// The password of the VMware NSX Manager cloudadmin. Changing this forces a new Azure VMware Solution Private Cloud to be created.
NsxtPassword *string `pulumi:"nsxtPassword"`
// The network which is used for virtual machine cold migration, cloning, and snapshot migration.
ProvisioningSubnetCidr *string `pulumi:"provisioningSubnetCidr"`
// The name of the Resource Group where the Azure VMware Solution Private Cloud should exist. Changing this forces a new Azure VMware Solution Private Cloud to be created.
ResourceGroupName *string `pulumi:"resourceGroupName"`
// The Name of the SKU used for this Azure VMware Solution Private Cloud. Possible values are `av20`, `av36`, `av36t`, `av36p`, `av36pt`, `av52`, `av52t`, and `av64`. Changing this forces a new Azure VMware Solution Private Cloud to be created.
SkuName *string `pulumi:"skuName"`
// A mapping of tags which should be assigned to the Azure VMware Solution Private Cloud.
Tags map[string]string `pulumi:"tags"`
// The thumbprint of the VMware vCenter Server SSL certificate.
VcenterCertificateThumbprint *string `pulumi:"vcenterCertificateThumbprint"`
// The password of the VMware vCenter Server cloudadmin. Changing this forces a new Azure VMware Solution Private Cloud to be created.
VcenterPassword *string `pulumi:"vcenterPassword"`
// The endpoint for VMware vCenter Server Appliance.
VcsaEndpoint *string `pulumi:"vcsaEndpoint"`
// The network which is used for live migration of virtual machines.
VmotionSubnetCidr *string `pulumi:"vmotionSubnetCidr"`
}
type PrivateCloudState struct {
// A `circuit` block as defined below.
Circuits PrivateCloudCircuitArrayInput
// The endpoint for the VMware HCX Cloud Manager.
HcxCloudManagerEndpoint pulumi.StringPtrInput
// Is the Azure VMware Solution Private Cloud connected to the internet? This field can not be updated with `management_cluster[0].size` together.
// > **NOTE :** `internetConnectionEnabled` and `management_cluster[0].size` cannot be updated at the same time.
InternetConnectionEnabled pulumi.BoolPtrInput
// The Azure Region where the Azure VMware Solution Private Cloud should exist. Changing this forces a new Azure VMware Solution Private Cloud to be created.
Location pulumi.StringPtrInput
// A `managementCluster` block as defined below.
// > **NOTE :** `internetConnectionEnabled` and `management_cluster[0].size` cannot be updated at the same time.
ManagementCluster PrivateCloudManagementClusterPtrInput
// The network used to access VMware vCenter Server and NSX Manager.
ManagementSubnetCidr pulumi.StringPtrInput
// The name which should be used for this Azure VMware Solution Private Cloud. Changing this forces a new Azure VMware Solution Private Cloud to be created.
Name pulumi.StringPtrInput
// The subnet which should be unique across virtual network in your subscription as well as on-premise. Changing this forces a new Azure VMware Solution Private Cloud to be created.
NetworkSubnetCidr pulumi.StringPtrInput
// The thumbprint of the VMware NSX Manager SSL certificate.
NsxtCertificateThumbprint pulumi.StringPtrInput
// The endpoint for the VMware NSX Manager.
NsxtManagerEndpoint pulumi.StringPtrInput
// The password of the VMware NSX Manager cloudadmin. Changing this forces a new Azure VMware Solution Private Cloud to be created.
NsxtPassword pulumi.StringPtrInput
// The network which is used for virtual machine cold migration, cloning, and snapshot migration.
ProvisioningSubnetCidr pulumi.StringPtrInput
// The name of the Resource Group where the Azure VMware Solution Private Cloud should exist. Changing this forces a new Azure VMware Solution Private Cloud to be created.
ResourceGroupName pulumi.StringPtrInput
// The Name of the SKU used for this Azure VMware Solution Private Cloud. Possible values are `av20`, `av36`, `av36t`, `av36p`, `av36pt`, `av52`, `av52t`, and `av64`. Changing this forces a new Azure VMware Solution Private Cloud to be created.
SkuName pulumi.StringPtrInput
// A mapping of tags which should be assigned to the Azure VMware Solution Private Cloud.
Tags pulumi.StringMapInput
// The thumbprint of the VMware vCenter Server SSL certificate.
VcenterCertificateThumbprint pulumi.StringPtrInput
// The password of the VMware vCenter Server cloudadmin. Changing this forces a new Azure VMware Solution Private Cloud to be created.
VcenterPassword pulumi.StringPtrInput
// The endpoint for VMware vCenter Server Appliance.
VcsaEndpoint pulumi.StringPtrInput
// The network which is used for live migration of virtual machines.
VmotionSubnetCidr pulumi.StringPtrInput
}
func (PrivateCloudState) ElementType() reflect.Type {
return reflect.TypeOf((*privateCloudState)(nil)).Elem()
}
type privateCloudArgs struct {
// Is the Azure VMware Solution Private Cloud connected to the internet? This field can not be updated with `management_cluster[0].size` together.
// > **NOTE :** `internetConnectionEnabled` and `management_cluster[0].size` cannot be updated at the same time.
InternetConnectionEnabled *bool `pulumi:"internetConnectionEnabled"`
// The Azure Region where the Azure VMware Solution Private Cloud should exist. Changing this forces a new Azure VMware Solution Private Cloud to be created.
Location *string `pulumi:"location"`
// A `managementCluster` block as defined below.
// > **NOTE :** `internetConnectionEnabled` and `management_cluster[0].size` cannot be updated at the same time.
ManagementCluster PrivateCloudManagementCluster `pulumi:"managementCluster"`
// The name which should be used for this Azure VMware Solution Private Cloud. Changing this forces a new Azure VMware Solution Private Cloud to be created.
Name *string `pulumi:"name"`
// The subnet which should be unique across virtual network in your subscription as well as on-premise. Changing this forces a new Azure VMware Solution Private Cloud to be created.
NetworkSubnetCidr string `pulumi:"networkSubnetCidr"`
// The password of the VMware NSX Manager cloudadmin. Changing this forces a new Azure VMware Solution Private Cloud to be created.
NsxtPassword *string `pulumi:"nsxtPassword"`
// The name of the Resource Group where the Azure VMware Solution Private Cloud should exist. Changing this forces a new Azure VMware Solution Private Cloud to be created.
ResourceGroupName string `pulumi:"resourceGroupName"`
// The Name of the SKU used for this Azure VMware Solution Private Cloud. Possible values are `av20`, `av36`, `av36t`, `av36p`, `av36pt`, `av52`, `av52t`, and `av64`. Changing this forces a new Azure VMware Solution Private Cloud to be created.
SkuName string `pulumi:"skuName"`
// A mapping of tags which should be assigned to the Azure VMware Solution Private Cloud.
Tags map[string]string `pulumi:"tags"`
// The password of the VMware vCenter Server cloudadmin. Changing this forces a new Azure VMware Solution Private Cloud to be created.
VcenterPassword *string `pulumi:"vcenterPassword"`
}
// The set of arguments for constructing a PrivateCloud resource.
type PrivateCloudArgs struct {
// Is the Azure VMware Solution Private Cloud connected to the internet? This field can not be updated with `management_cluster[0].size` together.
// > **NOTE :** `internetConnectionEnabled` and `management_cluster[0].size` cannot be updated at the same time.
InternetConnectionEnabled pulumi.BoolPtrInput
// The Azure Region where the Azure VMware Solution Private Cloud should exist. Changing this forces a new Azure VMware Solution Private Cloud to be created.
Location pulumi.StringPtrInput
// A `managementCluster` block as defined below.
// > **NOTE :** `internetConnectionEnabled` and `management_cluster[0].size` cannot be updated at the same time.
ManagementCluster PrivateCloudManagementClusterInput
// The name which should be used for this Azure VMware Solution Private Cloud. Changing this forces a new Azure VMware Solution Private Cloud to be created.
Name pulumi.StringPtrInput
// The subnet which should be unique across virtual network in your subscription as well as on-premise. Changing this forces a new Azure VMware Solution Private Cloud to be created.
NetworkSubnetCidr pulumi.StringInput
// The password of the VMware NSX Manager cloudadmin. Changing this forces a new Azure VMware Solution Private Cloud to be created.
NsxtPassword pulumi.StringPtrInput
// The name of the Resource Group where the Azure VMware Solution Private Cloud should exist. Changing this forces a new Azure VMware Solution Private Cloud to be created.
ResourceGroupName pulumi.StringInput
// The Name of the SKU used for this Azure VMware Solution Private Cloud. Possible values are `av20`, `av36`, `av36t`, `av36p`, `av36pt`, `av52`, `av52t`, and `av64`. Changing this forces a new Azure VMware Solution Private Cloud to be created.
SkuName pulumi.StringInput
// A mapping of tags which should be assigned to the Azure VMware Solution Private Cloud.
Tags pulumi.StringMapInput
// The password of the VMware vCenter Server cloudadmin. Changing this forces a new Azure VMware Solution Private Cloud to be created.
VcenterPassword pulumi.StringPtrInput
}
func (PrivateCloudArgs) ElementType() reflect.Type {
return reflect.TypeOf((*privateCloudArgs)(nil)).Elem()
}
type PrivateCloudInput interface {
pulumi.Input
ToPrivateCloudOutput() PrivateCloudOutput
ToPrivateCloudOutputWithContext(ctx context.Context) PrivateCloudOutput
}
func (*PrivateCloud) ElementType() reflect.Type {
return reflect.TypeOf((**PrivateCloud)(nil)).Elem()
}
func (i *PrivateCloud) ToPrivateCloudOutput() PrivateCloudOutput {
return i.ToPrivateCloudOutputWithContext(context.Background())
}
func (i *PrivateCloud) ToPrivateCloudOutputWithContext(ctx context.Context) PrivateCloudOutput {
return pulumi.ToOutputWithContext(ctx, i).(PrivateCloudOutput)
}
// PrivateCloudArrayInput is an input type that accepts PrivateCloudArray and PrivateCloudArrayOutput values.
// You can construct a concrete instance of `PrivateCloudArrayInput` via:
//
// PrivateCloudArray{ PrivateCloudArgs{...} }
type PrivateCloudArrayInput interface {
pulumi.Input
ToPrivateCloudArrayOutput() PrivateCloudArrayOutput
ToPrivateCloudArrayOutputWithContext(context.Context) PrivateCloudArrayOutput
}
type PrivateCloudArray []PrivateCloudInput
func (PrivateCloudArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*PrivateCloud)(nil)).Elem()
}
func (i PrivateCloudArray) ToPrivateCloudArrayOutput() PrivateCloudArrayOutput {
return i.ToPrivateCloudArrayOutputWithContext(context.Background())
}
func (i PrivateCloudArray) ToPrivateCloudArrayOutputWithContext(ctx context.Context) PrivateCloudArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(PrivateCloudArrayOutput)
}
// PrivateCloudMapInput is an input type that accepts PrivateCloudMap and PrivateCloudMapOutput values.
// You can construct a concrete instance of `PrivateCloudMapInput` via:
//
// PrivateCloudMap{ "key": PrivateCloudArgs{...} }
type PrivateCloudMapInput interface {
pulumi.Input
ToPrivateCloudMapOutput() PrivateCloudMapOutput
ToPrivateCloudMapOutputWithContext(context.Context) PrivateCloudMapOutput
}
type PrivateCloudMap map[string]PrivateCloudInput
func (PrivateCloudMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*PrivateCloud)(nil)).Elem()
}
func (i PrivateCloudMap) ToPrivateCloudMapOutput() PrivateCloudMapOutput {
return i.ToPrivateCloudMapOutputWithContext(context.Background())
}
func (i PrivateCloudMap) ToPrivateCloudMapOutputWithContext(ctx context.Context) PrivateCloudMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(PrivateCloudMapOutput)
}
type PrivateCloudOutput struct{ *pulumi.OutputState }
func (PrivateCloudOutput) ElementType() reflect.Type {
return reflect.TypeOf((**PrivateCloud)(nil)).Elem()
}
func (o PrivateCloudOutput) ToPrivateCloudOutput() PrivateCloudOutput {
return o
}
func (o PrivateCloudOutput) ToPrivateCloudOutputWithContext(ctx context.Context) PrivateCloudOutput {
return o
}
// A `circuit` block as defined below.
func (o PrivateCloudOutput) Circuits() PrivateCloudCircuitArrayOutput {
return o.ApplyT(func(v *PrivateCloud) PrivateCloudCircuitArrayOutput { return v.Circuits }).(PrivateCloudCircuitArrayOutput)
}
// The endpoint for the VMware HCX Cloud Manager.
func (o PrivateCloudOutput) HcxCloudManagerEndpoint() pulumi.StringOutput {
return o.ApplyT(func(v *PrivateCloud) pulumi.StringOutput { return v.HcxCloudManagerEndpoint }).(pulumi.StringOutput)
}
// Is the Azure VMware Solution Private Cloud connected to the internet? This field can not be updated with `management_cluster[0].size` together.
// > **NOTE :** `internetConnectionEnabled` and `management_cluster[0].size` cannot be updated at the same time.
func (o PrivateCloudOutput) InternetConnectionEnabled() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *PrivateCloud) pulumi.BoolPtrOutput { return v.InternetConnectionEnabled }).(pulumi.BoolPtrOutput)
}
// The Azure Region where the Azure VMware Solution Private Cloud should exist. Changing this forces a new Azure VMware Solution Private Cloud to be created.
func (o PrivateCloudOutput) Location() pulumi.StringOutput {
return o.ApplyT(func(v *PrivateCloud) pulumi.StringOutput { return v.Location }).(pulumi.StringOutput)
}
// A `managementCluster` block as defined below.
// > **NOTE :** `internetConnectionEnabled` and `management_cluster[0].size` cannot be updated at the same time.
func (o PrivateCloudOutput) ManagementCluster() PrivateCloudManagementClusterOutput {
return o.ApplyT(func(v *PrivateCloud) PrivateCloudManagementClusterOutput { return v.ManagementCluster }).(PrivateCloudManagementClusterOutput)
}
// The network used to access VMware vCenter Server and NSX Manager.
func (o PrivateCloudOutput) ManagementSubnetCidr() pulumi.StringOutput {
return o.ApplyT(func(v *PrivateCloud) pulumi.StringOutput { return v.ManagementSubnetCidr }).(pulumi.StringOutput)
}
// The name which should be used for this Azure VMware Solution Private Cloud. Changing this forces a new Azure VMware Solution Private Cloud to be created.
func (o PrivateCloudOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v *PrivateCloud) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
}
// The subnet which should be unique across virtual network in your subscription as well as on-premise. Changing this forces a new Azure VMware Solution Private Cloud to be created.
func (o PrivateCloudOutput) NetworkSubnetCidr() pulumi.StringOutput {
return o.ApplyT(func(v *PrivateCloud) pulumi.StringOutput { return v.NetworkSubnetCidr }).(pulumi.StringOutput)
}
// The thumbprint of the VMware NSX Manager SSL certificate.
func (o PrivateCloudOutput) NsxtCertificateThumbprint() pulumi.StringOutput {
return o.ApplyT(func(v *PrivateCloud) pulumi.StringOutput { return v.NsxtCertificateThumbprint }).(pulumi.StringOutput)
}
// The endpoint for the VMware NSX Manager.
func (o PrivateCloudOutput) NsxtManagerEndpoint() pulumi.StringOutput {
return o.ApplyT(func(v *PrivateCloud) pulumi.StringOutput { return v.NsxtManagerEndpoint }).(pulumi.StringOutput)
}
// The password of the VMware NSX Manager cloudadmin. Changing this forces a new Azure VMware Solution Private Cloud to be created.
func (o PrivateCloudOutput) NsxtPassword() pulumi.StringPtrOutput {
return o.ApplyT(func(v *PrivateCloud) pulumi.StringPtrOutput { return v.NsxtPassword }).(pulumi.StringPtrOutput)
}
// The network which is used for virtual machine cold migration, cloning, and snapshot migration.
func (o PrivateCloudOutput) ProvisioningSubnetCidr() pulumi.StringOutput {
return o.ApplyT(func(v *PrivateCloud) pulumi.StringOutput { return v.ProvisioningSubnetCidr }).(pulumi.StringOutput)
}
// The name of the Resource Group where the Azure VMware Solution Private Cloud should exist. Changing this forces a new Azure VMware Solution Private Cloud to be created.
func (o PrivateCloudOutput) ResourceGroupName() pulumi.StringOutput {
return o.ApplyT(func(v *PrivateCloud) pulumi.StringOutput { return v.ResourceGroupName }).(pulumi.StringOutput)
}
// The Name of the SKU used for this Azure VMware Solution Private Cloud. Possible values are `av20`, `av36`, `av36t`, `av36p`, `av36pt`, `av52`, `av52t`, and `av64`. Changing this forces a new Azure VMware Solution Private Cloud to be created.
func (o PrivateCloudOutput) SkuName() pulumi.StringOutput {
return o.ApplyT(func(v *PrivateCloud) pulumi.StringOutput { return v.SkuName }).(pulumi.StringOutput)
}
// A mapping of tags which should be assigned to the Azure VMware Solution Private Cloud.
func (o PrivateCloudOutput) Tags() pulumi.StringMapOutput {
return o.ApplyT(func(v *PrivateCloud) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput)
}
// The thumbprint of the VMware vCenter Server SSL certificate.
func (o PrivateCloudOutput) VcenterCertificateThumbprint() pulumi.StringOutput {
return o.ApplyT(func(v *PrivateCloud) pulumi.StringOutput { return v.VcenterCertificateThumbprint }).(pulumi.StringOutput)
}
// The password of the VMware vCenter Server cloudadmin. Changing this forces a new Azure VMware Solution Private Cloud to be created.
func (o PrivateCloudOutput) VcenterPassword() pulumi.StringPtrOutput {
return o.ApplyT(func(v *PrivateCloud) pulumi.StringPtrOutput { return v.VcenterPassword }).(pulumi.StringPtrOutput)
}
// The endpoint for VMware vCenter Server Appliance.
func (o PrivateCloudOutput) VcsaEndpoint() pulumi.StringOutput {
return o.ApplyT(func(v *PrivateCloud) pulumi.StringOutput { return v.VcsaEndpoint }).(pulumi.StringOutput)
}
// The network which is used for live migration of virtual machines.
func (o PrivateCloudOutput) VmotionSubnetCidr() pulumi.StringOutput {
return o.ApplyT(func(v *PrivateCloud) pulumi.StringOutput { return v.VmotionSubnetCidr }).(pulumi.StringOutput)
}
type PrivateCloudArrayOutput struct{ *pulumi.OutputState }
func (PrivateCloudArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*PrivateCloud)(nil)).Elem()
}
func (o PrivateCloudArrayOutput) ToPrivateCloudArrayOutput() PrivateCloudArrayOutput {
return o
}
func (o PrivateCloudArrayOutput) ToPrivateCloudArrayOutputWithContext(ctx context.Context) PrivateCloudArrayOutput {
return o
}
func (o PrivateCloudArrayOutput) Index(i pulumi.IntInput) PrivateCloudOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *PrivateCloud {
return vs[0].([]*PrivateCloud)[vs[1].(int)]
}).(PrivateCloudOutput)
}
type PrivateCloudMapOutput struct{ *pulumi.OutputState }
func (PrivateCloudMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*PrivateCloud)(nil)).Elem()
}
func (o PrivateCloudMapOutput) ToPrivateCloudMapOutput() PrivateCloudMapOutput {
return o
}
func (o PrivateCloudMapOutput) ToPrivateCloudMapOutputWithContext(ctx context.Context) PrivateCloudMapOutput {
return o
}
func (o PrivateCloudMapOutput) MapIndex(k pulumi.StringInput) PrivateCloudOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *PrivateCloud {
return vs[0].(map[string]*PrivateCloud)[vs[1].(string)]
}).(PrivateCloudOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*PrivateCloudInput)(nil)).Elem(), &PrivateCloud{})
pulumi.RegisterInputType(reflect.TypeOf((*PrivateCloudArrayInput)(nil)).Elem(), PrivateCloudArray{})
pulumi.RegisterInputType(reflect.TypeOf((*PrivateCloudMapInput)(nil)).Elem(), PrivateCloudMap{})
pulumi.RegisterOutputType(PrivateCloudOutput{})
pulumi.RegisterOutputType(PrivateCloudArrayOutput{})
pulumi.RegisterOutputType(PrivateCloudMapOutput{})
}