/
serviceProfile.go
562 lines (495 loc) · 21.6 KB
/
serviceProfile.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
// 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 fabric
import (
"context"
"reflect"
"errors"
"github.com/equinix/pulumi-equinix/sdk/go/equinix/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Fabric V4 API compatible resource allows creation and management of Equinix Fabric Service Profile
//
// ## Example Usage
// ```go
// package main
//
// import (
//
// "github.com/equinix/pulumi-equinix/sdk/go/equinix/fabric"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// profile, err := fabric.NewServiceProfile(ctx, "profile", &fabric.ServiceProfileArgs{
// Name: pulumi.String("Example Cloud Provider"),
// Description: pulumi.String("50 to 500 Mbps Hosted Connection to Example Cloud"),
// Type: pulumi.String("L2_PROFILE"),
// AccessPointTypeConfigs: fabric.ServiceProfileAccessPointTypeConfigArray{
// &fabric.ServiceProfileAccessPointTypeConfigArgs{
// Type: pulumi.String("COLO"),
// SupportedBandwidths: pulumi.IntArray{
// pulumi.Int(50),
// pulumi.Int(100),
// pulumi.Int(200),
// pulumi.Int(500),
// },
// AllowRemoteConnections: pulumi.Bool(true),
// AllowCustomBandwidth: pulumi.Bool(false),
// AllowBandwidthAutoApproval: pulumi.Bool(false),
// LinkProtocolConfig: &fabric.ServiceProfileAccessPointTypeConfigLinkProtocolConfigArgs{
// EncapsulationStrategy: pulumi.String("CTAGED"),
// ReuseVlanSTag: pulumi.Bool(false),
// Encapsulation: pulumi.String("DOT1Q"),
// },
// EnableAutoGenerateServiceKey: pulumi.Bool("false,"),
// ConnectionRedundancyRequired: pulumi.Bool("false,"),
// ApiConfig: &fabric.ServiceProfileAccessPointTypeConfigApiConfigArgs{
// ApiAvailable: pulumi.Bool(true),
// IntegrationId: pulumi.String("Example-Connect-01"),
// BandwidthFromApi: pulumi.Bool(false),
// },
// ConnectionLabel: pulumi.String("Virtual Circuit Name"),
// AuthenticationKey: &fabric.ServiceProfileAccessPointTypeConfigAuthenticationKeyArgs{
// Required: pulumi.Bool(true),
// Label: pulumi.String("Example ACCOUNT ID"),
// },
// },
// },
// Account: &fabric.ServiceProfileAccountArgs{
// OrganizationName: pulumi.String("Example Cloud"),
// GlobalOrganizationName: pulumi.String("Example Global"),
// },
// Metros: nil,
// Visibility: pulumi.String("PUBLIC"),
// MarketingInfo: &fabric.ServiceProfileMarketingInfoArgs{
// Promotion: pulumi.Bool(true),
// },
// })
// if err != nil {
// return err
// }
// ctx.Export("profileId", profile.ID())
// return nil
// })
// }
//
// ```
type ServiceProfile struct {
pulumi.CustomResourceState
// Access point config information
AccessPointTypeConfigs ServiceProfileAccessPointTypeConfigArrayOutput `pulumi:"accessPointTypeConfigs"`
// Service Profile Owner Account Information
Account ServiceProfileAccountOutput `pulumi:"account"`
// Array of contact emails
AllowedEmails pulumi.StringArrayOutput `pulumi:"allowedEmails"`
// Captures connection lifecycle change information
ChangeLog ServiceProfileChangeLogOutput `pulumi:"changeLog"`
// Custom Fields
CustomFields ServiceProfileCustomFieldArrayOutput `pulumi:"customFields"`
// Description of authorization key
Description pulumi.StringOutput `pulumi:"description"`
// Unique Resource URL
Href pulumi.StringOutput `pulumi:"href"`
// Marketing Info
MarketingInfo ServiceProfileMarketingInfoPtrOutput `pulumi:"marketingInfo"`
// Access point config information
Metros ServiceProfileMetroArrayOutput `pulumi:"metros"`
// Metro Name
Name pulumi.StringOutput `pulumi:"name"`
// Preferences for notifications on connection configuration or status changes
Notifications ServiceProfileNotificationArrayOutput `pulumi:"notifications"`
// Ports
Ports ServiceProfilePortArrayOutput `pulumi:"ports"`
// Project information
Project ServiceProfileProjectPtrOutput `pulumi:"project"`
// Self Profile indicating if the profile is created for customer's self use
SelfProfile pulumi.BoolPtrOutput `pulumi:"selfProfile"`
// Service profile state - ACTIVE, PENDING_APPROVAL, DELETED, REJECTED
State pulumi.StringPtrOutput `pulumi:"state"`
// Tags attached to the connection
Tags pulumi.StringArrayOutput `pulumi:"tags"`
// Type of access point type config - VD, COLO
Type pulumi.StringOutput `pulumi:"type"`
// Colo/Port Uuid
Uuid pulumi.StringOutput `pulumi:"uuid"`
// Virtual Devices
VirtualDevices ServiceProfileVirtualDeviceArrayOutput `pulumi:"virtualDevices"`
// Service profile visibility - PUBLIC, PRIVATE
Visibility pulumi.StringPtrOutput `pulumi:"visibility"`
}
// NewServiceProfile registers a new resource with the given unique name, arguments, and options.
func NewServiceProfile(ctx *pulumi.Context,
name string, args *ServiceProfileArgs, opts ...pulumi.ResourceOption) (*ServiceProfile, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.Description == nil {
return nil, errors.New("invalid value for required argument 'Description'")
}
if args.Type == nil {
return nil, errors.New("invalid value for required argument 'Type'")
}
opts = internal.PkgResourceDefaultOpts(opts)
var resource ServiceProfile
err := ctx.RegisterResource("equinix:fabric/serviceProfile:ServiceProfile", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetServiceProfile gets an existing ServiceProfile 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 GetServiceProfile(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *ServiceProfileState, opts ...pulumi.ResourceOption) (*ServiceProfile, error) {
var resource ServiceProfile
err := ctx.ReadResource("equinix:fabric/serviceProfile:ServiceProfile", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering ServiceProfile resources.
type serviceProfileState struct {
// Access point config information
AccessPointTypeConfigs []ServiceProfileAccessPointTypeConfig `pulumi:"accessPointTypeConfigs"`
// Service Profile Owner Account Information
Account *ServiceProfileAccount `pulumi:"account"`
// Array of contact emails
AllowedEmails []string `pulumi:"allowedEmails"`
// Captures connection lifecycle change information
ChangeLog *ServiceProfileChangeLog `pulumi:"changeLog"`
// Custom Fields
CustomFields []ServiceProfileCustomField `pulumi:"customFields"`
// Description of authorization key
Description *string `pulumi:"description"`
// Unique Resource URL
Href *string `pulumi:"href"`
// Marketing Info
MarketingInfo *ServiceProfileMarketingInfo `pulumi:"marketingInfo"`
// Access point config information
Metros []ServiceProfileMetro `pulumi:"metros"`
// Metro Name
Name *string `pulumi:"name"`
// Preferences for notifications on connection configuration or status changes
Notifications []ServiceProfileNotification `pulumi:"notifications"`
// Ports
Ports []ServiceProfilePort `pulumi:"ports"`
// Project information
Project *ServiceProfileProject `pulumi:"project"`
// Self Profile indicating if the profile is created for customer's self use
SelfProfile *bool `pulumi:"selfProfile"`
// Service profile state - ACTIVE, PENDING_APPROVAL, DELETED, REJECTED
State *string `pulumi:"state"`
// Tags attached to the connection
Tags []string `pulumi:"tags"`
// Type of access point type config - VD, COLO
Type *string `pulumi:"type"`
// Colo/Port Uuid
Uuid *string `pulumi:"uuid"`
// Virtual Devices
VirtualDevices []ServiceProfileVirtualDevice `pulumi:"virtualDevices"`
// Service profile visibility - PUBLIC, PRIVATE
Visibility *string `pulumi:"visibility"`
}
type ServiceProfileState struct {
// Access point config information
AccessPointTypeConfigs ServiceProfileAccessPointTypeConfigArrayInput
// Service Profile Owner Account Information
Account ServiceProfileAccountPtrInput
// Array of contact emails
AllowedEmails pulumi.StringArrayInput
// Captures connection lifecycle change information
ChangeLog ServiceProfileChangeLogPtrInput
// Custom Fields
CustomFields ServiceProfileCustomFieldArrayInput
// Description of authorization key
Description pulumi.StringPtrInput
// Unique Resource URL
Href pulumi.StringPtrInput
// Marketing Info
MarketingInfo ServiceProfileMarketingInfoPtrInput
// Access point config information
Metros ServiceProfileMetroArrayInput
// Metro Name
Name pulumi.StringPtrInput
// Preferences for notifications on connection configuration or status changes
Notifications ServiceProfileNotificationArrayInput
// Ports
Ports ServiceProfilePortArrayInput
// Project information
Project ServiceProfileProjectPtrInput
// Self Profile indicating if the profile is created for customer's self use
SelfProfile pulumi.BoolPtrInput
// Service profile state - ACTIVE, PENDING_APPROVAL, DELETED, REJECTED
State pulumi.StringPtrInput
// Tags attached to the connection
Tags pulumi.StringArrayInput
// Type of access point type config - VD, COLO
Type pulumi.StringPtrInput
// Colo/Port Uuid
Uuid pulumi.StringPtrInput
// Virtual Devices
VirtualDevices ServiceProfileVirtualDeviceArrayInput
// Service profile visibility - PUBLIC, PRIVATE
Visibility pulumi.StringPtrInput
}
func (ServiceProfileState) ElementType() reflect.Type {
return reflect.TypeOf((*serviceProfileState)(nil)).Elem()
}
type serviceProfileArgs struct {
// Access point config information
AccessPointTypeConfigs []ServiceProfileAccessPointTypeConfig `pulumi:"accessPointTypeConfigs"`
// Array of contact emails
AllowedEmails []string `pulumi:"allowedEmails"`
// Custom Fields
CustomFields []ServiceProfileCustomField `pulumi:"customFields"`
// Description of authorization key
Description string `pulumi:"description"`
// Marketing Info
MarketingInfo *ServiceProfileMarketingInfo `pulumi:"marketingInfo"`
// Access point config information
Metros []ServiceProfileMetro `pulumi:"metros"`
// Metro Name
Name *string `pulumi:"name"`
// Preferences for notifications on connection configuration or status changes
Notifications []ServiceProfileNotification `pulumi:"notifications"`
// Ports
Ports []ServiceProfilePort `pulumi:"ports"`
// Project information
Project *ServiceProfileProject `pulumi:"project"`
// Self Profile indicating if the profile is created for customer's self use
SelfProfile *bool `pulumi:"selfProfile"`
// Service profile state - ACTIVE, PENDING_APPROVAL, DELETED, REJECTED
State *string `pulumi:"state"`
// Tags attached to the connection
Tags []string `pulumi:"tags"`
// Type of access point type config - VD, COLO
Type string `pulumi:"type"`
// Virtual Devices
VirtualDevices []ServiceProfileVirtualDevice `pulumi:"virtualDevices"`
// Service profile visibility - PUBLIC, PRIVATE
Visibility *string `pulumi:"visibility"`
}
// The set of arguments for constructing a ServiceProfile resource.
type ServiceProfileArgs struct {
// Access point config information
AccessPointTypeConfigs ServiceProfileAccessPointTypeConfigArrayInput
// Array of contact emails
AllowedEmails pulumi.StringArrayInput
// Custom Fields
CustomFields ServiceProfileCustomFieldArrayInput
// Description of authorization key
Description pulumi.StringInput
// Marketing Info
MarketingInfo ServiceProfileMarketingInfoPtrInput
// Access point config information
Metros ServiceProfileMetroArrayInput
// Metro Name
Name pulumi.StringPtrInput
// Preferences for notifications on connection configuration or status changes
Notifications ServiceProfileNotificationArrayInput
// Ports
Ports ServiceProfilePortArrayInput
// Project information
Project ServiceProfileProjectPtrInput
// Self Profile indicating if the profile is created for customer's self use
SelfProfile pulumi.BoolPtrInput
// Service profile state - ACTIVE, PENDING_APPROVAL, DELETED, REJECTED
State pulumi.StringPtrInput
// Tags attached to the connection
Tags pulumi.StringArrayInput
// Type of access point type config - VD, COLO
Type pulumi.StringInput
// Virtual Devices
VirtualDevices ServiceProfileVirtualDeviceArrayInput
// Service profile visibility - PUBLIC, PRIVATE
Visibility pulumi.StringPtrInput
}
func (ServiceProfileArgs) ElementType() reflect.Type {
return reflect.TypeOf((*serviceProfileArgs)(nil)).Elem()
}
type ServiceProfileInput interface {
pulumi.Input
ToServiceProfileOutput() ServiceProfileOutput
ToServiceProfileOutputWithContext(ctx context.Context) ServiceProfileOutput
}
func (*ServiceProfile) ElementType() reflect.Type {
return reflect.TypeOf((**ServiceProfile)(nil)).Elem()
}
func (i *ServiceProfile) ToServiceProfileOutput() ServiceProfileOutput {
return i.ToServiceProfileOutputWithContext(context.Background())
}
func (i *ServiceProfile) ToServiceProfileOutputWithContext(ctx context.Context) ServiceProfileOutput {
return pulumi.ToOutputWithContext(ctx, i).(ServiceProfileOutput)
}
// ServiceProfileArrayInput is an input type that accepts ServiceProfileArray and ServiceProfileArrayOutput values.
// You can construct a concrete instance of `ServiceProfileArrayInput` via:
//
// ServiceProfileArray{ ServiceProfileArgs{...} }
type ServiceProfileArrayInput interface {
pulumi.Input
ToServiceProfileArrayOutput() ServiceProfileArrayOutput
ToServiceProfileArrayOutputWithContext(context.Context) ServiceProfileArrayOutput
}
type ServiceProfileArray []ServiceProfileInput
func (ServiceProfileArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*ServiceProfile)(nil)).Elem()
}
func (i ServiceProfileArray) ToServiceProfileArrayOutput() ServiceProfileArrayOutput {
return i.ToServiceProfileArrayOutputWithContext(context.Background())
}
func (i ServiceProfileArray) ToServiceProfileArrayOutputWithContext(ctx context.Context) ServiceProfileArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(ServiceProfileArrayOutput)
}
// ServiceProfileMapInput is an input type that accepts ServiceProfileMap and ServiceProfileMapOutput values.
// You can construct a concrete instance of `ServiceProfileMapInput` via:
//
// ServiceProfileMap{ "key": ServiceProfileArgs{...} }
type ServiceProfileMapInput interface {
pulumi.Input
ToServiceProfileMapOutput() ServiceProfileMapOutput
ToServiceProfileMapOutputWithContext(context.Context) ServiceProfileMapOutput
}
type ServiceProfileMap map[string]ServiceProfileInput
func (ServiceProfileMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*ServiceProfile)(nil)).Elem()
}
func (i ServiceProfileMap) ToServiceProfileMapOutput() ServiceProfileMapOutput {
return i.ToServiceProfileMapOutputWithContext(context.Background())
}
func (i ServiceProfileMap) ToServiceProfileMapOutputWithContext(ctx context.Context) ServiceProfileMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(ServiceProfileMapOutput)
}
type ServiceProfileOutput struct{ *pulumi.OutputState }
func (ServiceProfileOutput) ElementType() reflect.Type {
return reflect.TypeOf((**ServiceProfile)(nil)).Elem()
}
func (o ServiceProfileOutput) ToServiceProfileOutput() ServiceProfileOutput {
return o
}
func (o ServiceProfileOutput) ToServiceProfileOutputWithContext(ctx context.Context) ServiceProfileOutput {
return o
}
// Access point config information
func (o ServiceProfileOutput) AccessPointTypeConfigs() ServiceProfileAccessPointTypeConfigArrayOutput {
return o.ApplyT(func(v *ServiceProfile) ServiceProfileAccessPointTypeConfigArrayOutput {
return v.AccessPointTypeConfigs
}).(ServiceProfileAccessPointTypeConfigArrayOutput)
}
// Service Profile Owner Account Information
func (o ServiceProfileOutput) Account() ServiceProfileAccountOutput {
return o.ApplyT(func(v *ServiceProfile) ServiceProfileAccountOutput { return v.Account }).(ServiceProfileAccountOutput)
}
// Array of contact emails
func (o ServiceProfileOutput) AllowedEmails() pulumi.StringArrayOutput {
return o.ApplyT(func(v *ServiceProfile) pulumi.StringArrayOutput { return v.AllowedEmails }).(pulumi.StringArrayOutput)
}
// Captures connection lifecycle change information
func (o ServiceProfileOutput) ChangeLog() ServiceProfileChangeLogOutput {
return o.ApplyT(func(v *ServiceProfile) ServiceProfileChangeLogOutput { return v.ChangeLog }).(ServiceProfileChangeLogOutput)
}
// Custom Fields
func (o ServiceProfileOutput) CustomFields() ServiceProfileCustomFieldArrayOutput {
return o.ApplyT(func(v *ServiceProfile) ServiceProfileCustomFieldArrayOutput { return v.CustomFields }).(ServiceProfileCustomFieldArrayOutput)
}
// Description of authorization key
func (o ServiceProfileOutput) Description() pulumi.StringOutput {
return o.ApplyT(func(v *ServiceProfile) pulumi.StringOutput { return v.Description }).(pulumi.StringOutput)
}
// Unique Resource URL
func (o ServiceProfileOutput) Href() pulumi.StringOutput {
return o.ApplyT(func(v *ServiceProfile) pulumi.StringOutput { return v.Href }).(pulumi.StringOutput)
}
// Marketing Info
func (o ServiceProfileOutput) MarketingInfo() ServiceProfileMarketingInfoPtrOutput {
return o.ApplyT(func(v *ServiceProfile) ServiceProfileMarketingInfoPtrOutput { return v.MarketingInfo }).(ServiceProfileMarketingInfoPtrOutput)
}
// Access point config information
func (o ServiceProfileOutput) Metros() ServiceProfileMetroArrayOutput {
return o.ApplyT(func(v *ServiceProfile) ServiceProfileMetroArrayOutput { return v.Metros }).(ServiceProfileMetroArrayOutput)
}
// Metro Name
func (o ServiceProfileOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v *ServiceProfile) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
}
// Preferences for notifications on connection configuration or status changes
func (o ServiceProfileOutput) Notifications() ServiceProfileNotificationArrayOutput {
return o.ApplyT(func(v *ServiceProfile) ServiceProfileNotificationArrayOutput { return v.Notifications }).(ServiceProfileNotificationArrayOutput)
}
// Ports
func (o ServiceProfileOutput) Ports() ServiceProfilePortArrayOutput {
return o.ApplyT(func(v *ServiceProfile) ServiceProfilePortArrayOutput { return v.Ports }).(ServiceProfilePortArrayOutput)
}
// Project information
func (o ServiceProfileOutput) Project() ServiceProfileProjectPtrOutput {
return o.ApplyT(func(v *ServiceProfile) ServiceProfileProjectPtrOutput { return v.Project }).(ServiceProfileProjectPtrOutput)
}
// Self Profile indicating if the profile is created for customer's self use
func (o ServiceProfileOutput) SelfProfile() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *ServiceProfile) pulumi.BoolPtrOutput { return v.SelfProfile }).(pulumi.BoolPtrOutput)
}
// Service profile state - ACTIVE, PENDING_APPROVAL, DELETED, REJECTED
func (o ServiceProfileOutput) State() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ServiceProfile) pulumi.StringPtrOutput { return v.State }).(pulumi.StringPtrOutput)
}
// Tags attached to the connection
func (o ServiceProfileOutput) Tags() pulumi.StringArrayOutput {
return o.ApplyT(func(v *ServiceProfile) pulumi.StringArrayOutput { return v.Tags }).(pulumi.StringArrayOutput)
}
// Type of access point type config - VD, COLO
func (o ServiceProfileOutput) Type() pulumi.StringOutput {
return o.ApplyT(func(v *ServiceProfile) pulumi.StringOutput { return v.Type }).(pulumi.StringOutput)
}
// Colo/Port Uuid
func (o ServiceProfileOutput) Uuid() pulumi.StringOutput {
return o.ApplyT(func(v *ServiceProfile) pulumi.StringOutput { return v.Uuid }).(pulumi.StringOutput)
}
// Virtual Devices
func (o ServiceProfileOutput) VirtualDevices() ServiceProfileVirtualDeviceArrayOutput {
return o.ApplyT(func(v *ServiceProfile) ServiceProfileVirtualDeviceArrayOutput { return v.VirtualDevices }).(ServiceProfileVirtualDeviceArrayOutput)
}
// Service profile visibility - PUBLIC, PRIVATE
func (o ServiceProfileOutput) Visibility() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ServiceProfile) pulumi.StringPtrOutput { return v.Visibility }).(pulumi.StringPtrOutput)
}
type ServiceProfileArrayOutput struct{ *pulumi.OutputState }
func (ServiceProfileArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*ServiceProfile)(nil)).Elem()
}
func (o ServiceProfileArrayOutput) ToServiceProfileArrayOutput() ServiceProfileArrayOutput {
return o
}
func (o ServiceProfileArrayOutput) ToServiceProfileArrayOutputWithContext(ctx context.Context) ServiceProfileArrayOutput {
return o
}
func (o ServiceProfileArrayOutput) Index(i pulumi.IntInput) ServiceProfileOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *ServiceProfile {
return vs[0].([]*ServiceProfile)[vs[1].(int)]
}).(ServiceProfileOutput)
}
type ServiceProfileMapOutput struct{ *pulumi.OutputState }
func (ServiceProfileMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*ServiceProfile)(nil)).Elem()
}
func (o ServiceProfileMapOutput) ToServiceProfileMapOutput() ServiceProfileMapOutput {
return o
}
func (o ServiceProfileMapOutput) ToServiceProfileMapOutputWithContext(ctx context.Context) ServiceProfileMapOutput {
return o
}
func (o ServiceProfileMapOutput) MapIndex(k pulumi.StringInput) ServiceProfileOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *ServiceProfile {
return vs[0].(map[string]*ServiceProfile)[vs[1].(string)]
}).(ServiceProfileOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*ServiceProfileInput)(nil)).Elem(), &ServiceProfile{})
pulumi.RegisterInputType(reflect.TypeOf((*ServiceProfileArrayInput)(nil)).Elem(), ServiceProfileArray{})
pulumi.RegisterInputType(reflect.TypeOf((*ServiceProfileMapInput)(nil)).Elem(), ServiceProfileMap{})
pulumi.RegisterOutputType(ServiceProfileOutput{})
pulumi.RegisterOutputType(ServiceProfileArrayOutput{})
pulumi.RegisterOutputType(ServiceProfileMapOutput{})
}