/
devEndpoint.go
479 lines (433 loc) · 21.7 KB
/
devEndpoint.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
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package glue
import (
"context"
"reflect"
"github.com/pkg/errors"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Provides a Glue Development Endpoint resource.
//
// ## Example Usage
//
// Basic usage:
//
// ```go
// package main
//
// import (
// "github.com/pulumi/pulumi-aws/sdk/v4/go/aws/glue"
// "github.com/pulumi/pulumi-aws/sdk/v4/go/aws/iam"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// examplePolicyDocument, err := iam.GetPolicyDocument(ctx, &iam.GetPolicyDocumentArgs{
// Statements: []iam.GetPolicyDocumentStatement{
// iam.GetPolicyDocumentStatement{
// Actions: []string{
// "sts:AssumeRole",
// },
// Principals: []iam.GetPolicyDocumentStatementPrincipal{
// iam.GetPolicyDocumentStatementPrincipal{
// Type: "Service",
// Identifiers: []string{
// "glue.amazonaws.com",
// },
// },
// },
// },
// },
// }, nil)
// if err != nil {
// return err
// }
// exampleRole, err := iam.NewRole(ctx, "exampleRole", &iam.RoleArgs{
// AssumeRolePolicy: pulumi.String(examplePolicyDocument.Json),
// })
// if err != nil {
// return err
// }
// _, err = glue.NewDevEndpoint(ctx, "exampleDevEndpoint", &glue.DevEndpointArgs{
// RoleArn: exampleRole.Arn,
// })
// if err != nil {
// return err
// }
// _, err = iam.NewRolePolicyAttachment(ctx, "example-AWSGlueServiceRole", &iam.RolePolicyAttachmentArgs{
// PolicyArn: pulumi.String("arn:aws:iam::aws:policy/service-role/AWSGlueServiceRole"),
// Role: exampleRole.Name,
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
// ```
//
// ## Import
//
// A Glue Development Endpoint can be imported using the `name`, e.g.,
//
// ```sh
// $ pulumi import aws:glue/devEndpoint:DevEndpoint example foo
// ```
type DevEndpoint struct {
pulumi.CustomResourceState
// A map of arguments used to configure the endpoint.
Arguments pulumi.MapOutput `pulumi:"arguments"`
// The ARN of the endpoint.
Arn pulumi.StringOutput `pulumi:"arn"`
// The AWS availability zone where this endpoint is located.
AvailabilityZone pulumi.StringOutput `pulumi:"availabilityZone"`
// Path to one or more Java Jars in an S3 bucket that should be loaded in this endpoint.
ExtraJarsS3Path pulumi.StringPtrOutput `pulumi:"extraJarsS3Path"`
// Path(s) to one or more Python libraries in an S3 bucket that should be loaded in this endpoint. Multiple values must be complete paths separated by a comma.
ExtraPythonLibsS3Path pulumi.StringPtrOutput `pulumi:"extraPythonLibsS3Path"`
// The reason for a current failure in this endpoint.
FailureReason pulumi.StringOutput `pulumi:"failureReason"`
// - Specifies the versions of Python and Apache Spark to use. Defaults to AWS Glue version 0.9.
GlueVersion pulumi.StringPtrOutput `pulumi:"glueVersion"`
// The name of this endpoint. It must be unique in your account.
Name pulumi.StringOutput `pulumi:"name"`
// The number of AWS Glue Data Processing Units (DPUs) to allocate to this endpoint. Conflicts with `workerType`.
NumberOfNodes pulumi.IntPtrOutput `pulumi:"numberOfNodes"`
// The number of workers of a defined worker type that are allocated to this endpoint. This field is available only when you choose worker type G.1X or G.2X.
NumberOfWorkers pulumi.IntPtrOutput `pulumi:"numberOfWorkers"`
// A private IP address to access the endpoint within a VPC, if this endpoint is created within one.
PrivateAddress pulumi.StringOutput `pulumi:"privateAddress"`
// The public IP address used by this endpoint. The PublicAddress field is present only when you create a non-VPC endpoint.
PublicAddress pulumi.StringOutput `pulumi:"publicAddress"`
// The public key to be used by this endpoint for authentication.
PublicKey pulumi.StringPtrOutput `pulumi:"publicKey"`
// A list of public keys to be used by this endpoint for authentication.
PublicKeys pulumi.StringArrayOutput `pulumi:"publicKeys"`
// The IAM role for this endpoint.
RoleArn pulumi.StringOutput `pulumi:"roleArn"`
// The name of the Security Configuration structure to be used with this endpoint.
SecurityConfiguration pulumi.StringPtrOutput `pulumi:"securityConfiguration"`
// Security group IDs for the security groups to be used by this endpoint.
SecurityGroupIds pulumi.StringArrayOutput `pulumi:"securityGroupIds"`
// The current status of this endpoint.
Status pulumi.StringOutput `pulumi:"status"`
// The subnet ID for the new endpoint to use.
SubnetId pulumi.StringPtrOutput `pulumi:"subnetId"`
// Key-value map of resource tags. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Tags pulumi.StringMapOutput `pulumi:"tags"`
// A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"`
// he ID of the VPC used by this endpoint.
VpcId pulumi.StringOutput `pulumi:"vpcId"`
// The type of predefined worker that is allocated to this endpoint. Accepts a value of Standard, G.1X, or G.2X.
WorkerType pulumi.StringPtrOutput `pulumi:"workerType"`
// The YARN endpoint address used by this endpoint.
YarnEndpointAddress pulumi.StringOutput `pulumi:"yarnEndpointAddress"`
// The Apache Zeppelin port for the remote Apache Spark interpreter.
ZeppelinRemoteSparkInterpreterPort pulumi.IntOutput `pulumi:"zeppelinRemoteSparkInterpreterPort"`
}
// NewDevEndpoint registers a new resource with the given unique name, arguments, and options.
func NewDevEndpoint(ctx *pulumi.Context,
name string, args *DevEndpointArgs, opts ...pulumi.ResourceOption) (*DevEndpoint, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.RoleArn == nil {
return nil, errors.New("invalid value for required argument 'RoleArn'")
}
var resource DevEndpoint
err := ctx.RegisterResource("aws:glue/devEndpoint:DevEndpoint", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetDevEndpoint gets an existing DevEndpoint 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 GetDevEndpoint(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *DevEndpointState, opts ...pulumi.ResourceOption) (*DevEndpoint, error) {
var resource DevEndpoint
err := ctx.ReadResource("aws:glue/devEndpoint:DevEndpoint", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering DevEndpoint resources.
type devEndpointState struct {
// A map of arguments used to configure the endpoint.
Arguments map[string]interface{} `pulumi:"arguments"`
// The ARN of the endpoint.
Arn *string `pulumi:"arn"`
// The AWS availability zone where this endpoint is located.
AvailabilityZone *string `pulumi:"availabilityZone"`
// Path to one or more Java Jars in an S3 bucket that should be loaded in this endpoint.
ExtraJarsS3Path *string `pulumi:"extraJarsS3Path"`
// Path(s) to one or more Python libraries in an S3 bucket that should be loaded in this endpoint. Multiple values must be complete paths separated by a comma.
ExtraPythonLibsS3Path *string `pulumi:"extraPythonLibsS3Path"`
// The reason for a current failure in this endpoint.
FailureReason *string `pulumi:"failureReason"`
// - Specifies the versions of Python and Apache Spark to use. Defaults to AWS Glue version 0.9.
GlueVersion *string `pulumi:"glueVersion"`
// The name of this endpoint. It must be unique in your account.
Name *string `pulumi:"name"`
// The number of AWS Glue Data Processing Units (DPUs) to allocate to this endpoint. Conflicts with `workerType`.
NumberOfNodes *int `pulumi:"numberOfNodes"`
// The number of workers of a defined worker type that are allocated to this endpoint. This field is available only when you choose worker type G.1X or G.2X.
NumberOfWorkers *int `pulumi:"numberOfWorkers"`
// A private IP address to access the endpoint within a VPC, if this endpoint is created within one.
PrivateAddress *string `pulumi:"privateAddress"`
// The public IP address used by this endpoint. The PublicAddress field is present only when you create a non-VPC endpoint.
PublicAddress *string `pulumi:"publicAddress"`
// The public key to be used by this endpoint for authentication.
PublicKey *string `pulumi:"publicKey"`
// A list of public keys to be used by this endpoint for authentication.
PublicKeys []string `pulumi:"publicKeys"`
// The IAM role for this endpoint.
RoleArn *string `pulumi:"roleArn"`
// The name of the Security Configuration structure to be used with this endpoint.
SecurityConfiguration *string `pulumi:"securityConfiguration"`
// Security group IDs for the security groups to be used by this endpoint.
SecurityGroupIds []string `pulumi:"securityGroupIds"`
// The current status of this endpoint.
Status *string `pulumi:"status"`
// The subnet ID for the new endpoint to use.
SubnetId *string `pulumi:"subnetId"`
// Key-value map of resource tags. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Tags map[string]string `pulumi:"tags"`
// A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
TagsAll map[string]string `pulumi:"tagsAll"`
// he ID of the VPC used by this endpoint.
VpcId *string `pulumi:"vpcId"`
// The type of predefined worker that is allocated to this endpoint. Accepts a value of Standard, G.1X, or G.2X.
WorkerType *string `pulumi:"workerType"`
// The YARN endpoint address used by this endpoint.
YarnEndpointAddress *string `pulumi:"yarnEndpointAddress"`
// The Apache Zeppelin port for the remote Apache Spark interpreter.
ZeppelinRemoteSparkInterpreterPort *int `pulumi:"zeppelinRemoteSparkInterpreterPort"`
}
type DevEndpointState struct {
// A map of arguments used to configure the endpoint.
Arguments pulumi.MapInput
// The ARN of the endpoint.
Arn pulumi.StringPtrInput
// The AWS availability zone where this endpoint is located.
AvailabilityZone pulumi.StringPtrInput
// Path to one or more Java Jars in an S3 bucket that should be loaded in this endpoint.
ExtraJarsS3Path pulumi.StringPtrInput
// Path(s) to one or more Python libraries in an S3 bucket that should be loaded in this endpoint. Multiple values must be complete paths separated by a comma.
ExtraPythonLibsS3Path pulumi.StringPtrInput
// The reason for a current failure in this endpoint.
FailureReason pulumi.StringPtrInput
// - Specifies the versions of Python and Apache Spark to use. Defaults to AWS Glue version 0.9.
GlueVersion pulumi.StringPtrInput
// The name of this endpoint. It must be unique in your account.
Name pulumi.StringPtrInput
// The number of AWS Glue Data Processing Units (DPUs) to allocate to this endpoint. Conflicts with `workerType`.
NumberOfNodes pulumi.IntPtrInput
// The number of workers of a defined worker type that are allocated to this endpoint. This field is available only when you choose worker type G.1X or G.2X.
NumberOfWorkers pulumi.IntPtrInput
// A private IP address to access the endpoint within a VPC, if this endpoint is created within one.
PrivateAddress pulumi.StringPtrInput
// The public IP address used by this endpoint. The PublicAddress field is present only when you create a non-VPC endpoint.
PublicAddress pulumi.StringPtrInput
// The public key to be used by this endpoint for authentication.
PublicKey pulumi.StringPtrInput
// A list of public keys to be used by this endpoint for authentication.
PublicKeys pulumi.StringArrayInput
// The IAM role for this endpoint.
RoleArn pulumi.StringPtrInput
// The name of the Security Configuration structure to be used with this endpoint.
SecurityConfiguration pulumi.StringPtrInput
// Security group IDs for the security groups to be used by this endpoint.
SecurityGroupIds pulumi.StringArrayInput
// The current status of this endpoint.
Status pulumi.StringPtrInput
// The subnet ID for the new endpoint to use.
SubnetId pulumi.StringPtrInput
// Key-value map of resource tags. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Tags pulumi.StringMapInput
// A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
TagsAll pulumi.StringMapInput
// he ID of the VPC used by this endpoint.
VpcId pulumi.StringPtrInput
// The type of predefined worker that is allocated to this endpoint. Accepts a value of Standard, G.1X, or G.2X.
WorkerType pulumi.StringPtrInput
// The YARN endpoint address used by this endpoint.
YarnEndpointAddress pulumi.StringPtrInput
// The Apache Zeppelin port for the remote Apache Spark interpreter.
ZeppelinRemoteSparkInterpreterPort pulumi.IntPtrInput
}
func (DevEndpointState) ElementType() reflect.Type {
return reflect.TypeOf((*devEndpointState)(nil)).Elem()
}
type devEndpointArgs struct {
// A map of arguments used to configure the endpoint.
Arguments map[string]interface{} `pulumi:"arguments"`
// Path to one or more Java Jars in an S3 bucket that should be loaded in this endpoint.
ExtraJarsS3Path *string `pulumi:"extraJarsS3Path"`
// Path(s) to one or more Python libraries in an S3 bucket that should be loaded in this endpoint. Multiple values must be complete paths separated by a comma.
ExtraPythonLibsS3Path *string `pulumi:"extraPythonLibsS3Path"`
// - Specifies the versions of Python and Apache Spark to use. Defaults to AWS Glue version 0.9.
GlueVersion *string `pulumi:"glueVersion"`
// The name of this endpoint. It must be unique in your account.
Name *string `pulumi:"name"`
// The number of AWS Glue Data Processing Units (DPUs) to allocate to this endpoint. Conflicts with `workerType`.
NumberOfNodes *int `pulumi:"numberOfNodes"`
// The number of workers of a defined worker type that are allocated to this endpoint. This field is available only when you choose worker type G.1X or G.2X.
NumberOfWorkers *int `pulumi:"numberOfWorkers"`
// The public key to be used by this endpoint for authentication.
PublicKey *string `pulumi:"publicKey"`
// A list of public keys to be used by this endpoint for authentication.
PublicKeys []string `pulumi:"publicKeys"`
// The IAM role for this endpoint.
RoleArn string `pulumi:"roleArn"`
// The name of the Security Configuration structure to be used with this endpoint.
SecurityConfiguration *string `pulumi:"securityConfiguration"`
// Security group IDs for the security groups to be used by this endpoint.
SecurityGroupIds []string `pulumi:"securityGroupIds"`
// The subnet ID for the new endpoint to use.
SubnetId *string `pulumi:"subnetId"`
// Key-value map of resource tags. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Tags map[string]string `pulumi:"tags"`
// The type of predefined worker that is allocated to this endpoint. Accepts a value of Standard, G.1X, or G.2X.
WorkerType *string `pulumi:"workerType"`
}
// The set of arguments for constructing a DevEndpoint resource.
type DevEndpointArgs struct {
// A map of arguments used to configure the endpoint.
Arguments pulumi.MapInput
// Path to one or more Java Jars in an S3 bucket that should be loaded in this endpoint.
ExtraJarsS3Path pulumi.StringPtrInput
// Path(s) to one or more Python libraries in an S3 bucket that should be loaded in this endpoint. Multiple values must be complete paths separated by a comma.
ExtraPythonLibsS3Path pulumi.StringPtrInput
// - Specifies the versions of Python and Apache Spark to use. Defaults to AWS Glue version 0.9.
GlueVersion pulumi.StringPtrInput
// The name of this endpoint. It must be unique in your account.
Name pulumi.StringPtrInput
// The number of AWS Glue Data Processing Units (DPUs) to allocate to this endpoint. Conflicts with `workerType`.
NumberOfNodes pulumi.IntPtrInput
// The number of workers of a defined worker type that are allocated to this endpoint. This field is available only when you choose worker type G.1X or G.2X.
NumberOfWorkers pulumi.IntPtrInput
// The public key to be used by this endpoint for authentication.
PublicKey pulumi.StringPtrInput
// A list of public keys to be used by this endpoint for authentication.
PublicKeys pulumi.StringArrayInput
// The IAM role for this endpoint.
RoleArn pulumi.StringInput
// The name of the Security Configuration structure to be used with this endpoint.
SecurityConfiguration pulumi.StringPtrInput
// Security group IDs for the security groups to be used by this endpoint.
SecurityGroupIds pulumi.StringArrayInput
// The subnet ID for the new endpoint to use.
SubnetId pulumi.StringPtrInput
// Key-value map of resource tags. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Tags pulumi.StringMapInput
// The type of predefined worker that is allocated to this endpoint. Accepts a value of Standard, G.1X, or G.2X.
WorkerType pulumi.StringPtrInput
}
func (DevEndpointArgs) ElementType() reflect.Type {
return reflect.TypeOf((*devEndpointArgs)(nil)).Elem()
}
type DevEndpointInput interface {
pulumi.Input
ToDevEndpointOutput() DevEndpointOutput
ToDevEndpointOutputWithContext(ctx context.Context) DevEndpointOutput
}
func (*DevEndpoint) ElementType() reflect.Type {
return reflect.TypeOf((**DevEndpoint)(nil)).Elem()
}
func (i *DevEndpoint) ToDevEndpointOutput() DevEndpointOutput {
return i.ToDevEndpointOutputWithContext(context.Background())
}
func (i *DevEndpoint) ToDevEndpointOutputWithContext(ctx context.Context) DevEndpointOutput {
return pulumi.ToOutputWithContext(ctx, i).(DevEndpointOutput)
}
// DevEndpointArrayInput is an input type that accepts DevEndpointArray and DevEndpointArrayOutput values.
// You can construct a concrete instance of `DevEndpointArrayInput` via:
//
// DevEndpointArray{ DevEndpointArgs{...} }
type DevEndpointArrayInput interface {
pulumi.Input
ToDevEndpointArrayOutput() DevEndpointArrayOutput
ToDevEndpointArrayOutputWithContext(context.Context) DevEndpointArrayOutput
}
type DevEndpointArray []DevEndpointInput
func (DevEndpointArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*DevEndpoint)(nil)).Elem()
}
func (i DevEndpointArray) ToDevEndpointArrayOutput() DevEndpointArrayOutput {
return i.ToDevEndpointArrayOutputWithContext(context.Background())
}
func (i DevEndpointArray) ToDevEndpointArrayOutputWithContext(ctx context.Context) DevEndpointArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(DevEndpointArrayOutput)
}
// DevEndpointMapInput is an input type that accepts DevEndpointMap and DevEndpointMapOutput values.
// You can construct a concrete instance of `DevEndpointMapInput` via:
//
// DevEndpointMap{ "key": DevEndpointArgs{...} }
type DevEndpointMapInput interface {
pulumi.Input
ToDevEndpointMapOutput() DevEndpointMapOutput
ToDevEndpointMapOutputWithContext(context.Context) DevEndpointMapOutput
}
type DevEndpointMap map[string]DevEndpointInput
func (DevEndpointMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*DevEndpoint)(nil)).Elem()
}
func (i DevEndpointMap) ToDevEndpointMapOutput() DevEndpointMapOutput {
return i.ToDevEndpointMapOutputWithContext(context.Background())
}
func (i DevEndpointMap) ToDevEndpointMapOutputWithContext(ctx context.Context) DevEndpointMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(DevEndpointMapOutput)
}
type DevEndpointOutput struct{ *pulumi.OutputState }
func (DevEndpointOutput) ElementType() reflect.Type {
return reflect.TypeOf((**DevEndpoint)(nil)).Elem()
}
func (o DevEndpointOutput) ToDevEndpointOutput() DevEndpointOutput {
return o
}
func (o DevEndpointOutput) ToDevEndpointOutputWithContext(ctx context.Context) DevEndpointOutput {
return o
}
type DevEndpointArrayOutput struct{ *pulumi.OutputState }
func (DevEndpointArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*DevEndpoint)(nil)).Elem()
}
func (o DevEndpointArrayOutput) ToDevEndpointArrayOutput() DevEndpointArrayOutput {
return o
}
func (o DevEndpointArrayOutput) ToDevEndpointArrayOutputWithContext(ctx context.Context) DevEndpointArrayOutput {
return o
}
func (o DevEndpointArrayOutput) Index(i pulumi.IntInput) DevEndpointOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *DevEndpoint {
return vs[0].([]*DevEndpoint)[vs[1].(int)]
}).(DevEndpointOutput)
}
type DevEndpointMapOutput struct{ *pulumi.OutputState }
func (DevEndpointMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*DevEndpoint)(nil)).Elem()
}
func (o DevEndpointMapOutput) ToDevEndpointMapOutput() DevEndpointMapOutput {
return o
}
func (o DevEndpointMapOutput) ToDevEndpointMapOutputWithContext(ctx context.Context) DevEndpointMapOutput {
return o
}
func (o DevEndpointMapOutput) MapIndex(k pulumi.StringInput) DevEndpointOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *DevEndpoint {
return vs[0].(map[string]*DevEndpoint)[vs[1].(string)]
}).(DevEndpointOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*DevEndpointInput)(nil)).Elem(), &DevEndpoint{})
pulumi.RegisterInputType(reflect.TypeOf((*DevEndpointArrayInput)(nil)).Elem(), DevEndpointArray{})
pulumi.RegisterInputType(reflect.TypeOf((*DevEndpointMapInput)(nil)).Elem(), DevEndpointMap{})
pulumi.RegisterOutputType(DevEndpointOutput{})
pulumi.RegisterOutputType(DevEndpointArrayOutput{})
pulumi.RegisterOutputType(DevEndpointMapOutput{})
}