/
vpcDhcpOptions.go
438 lines (382 loc) · 21.4 KB
/
vpcDhcpOptions.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
// 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 ec2
import (
"context"
"reflect"
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Provides a VPC DHCP Options resource.
//
// ## Example Usage
//
// Basic usage:
//
// <!--Start PulumiCodeChooser -->
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ec2"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// _, err := ec2.NewVpcDhcpOptions(ctx, "dns_resolver", &ec2.VpcDhcpOptionsArgs{
// DomainNameServers: pulumi.StringArray{
// pulumi.String("8.8.8.8"),
// pulumi.String("8.8.4.4"),
// },
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
// <!--End PulumiCodeChooser -->
//
// Full usage:
//
// <!--Start PulumiCodeChooser -->
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ec2"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// _, err := ec2.NewVpcDhcpOptions(ctx, "foo", &ec2.VpcDhcpOptionsArgs{
// DomainName: pulumi.String("service.consul"),
// DomainNameServers: pulumi.StringArray{
// pulumi.String("127.0.0.1"),
// pulumi.String("10.0.0.2"),
// },
// Ipv6AddressPreferredLeaseTime: pulumi.String("1440"),
// NtpServers: pulumi.StringArray{
// pulumi.String("127.0.0.1"),
// },
// NetbiosNameServers: pulumi.StringArray{
// pulumi.String("127.0.0.1"),
// },
// NetbiosNodeType: pulumi.String("2"),
// Tags: pulumi.StringMap{
// "Name": pulumi.String("foo-name"),
// },
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
// <!--End PulumiCodeChooser -->
//
// ## Remarks
//
// * Notice that all arguments are optional but you have to specify at least one argument.
// * `domainNameServers`, `netbiosNameServers`, `ntpServers` are limited by AWS to maximum four servers only.
// * To actually use the DHCP Options Set you need to associate it to a VPC using `ec2.VpcDhcpOptionsAssociation`.
// * If you delete a DHCP Options Set, all VPCs using it will be associated to AWS's `default` DHCP Option Set.
// * In most cases unless you're configuring your own DNS you'll want to set `domainNameServers` to `AmazonProvidedDNS`.
//
// ## Import
//
// Using `pulumi import`, import VPC DHCP Options using the DHCP Options `id`. For example:
//
// ```sh
// $ pulumi import aws:ec2/vpcDhcpOptions:VpcDhcpOptions my_options dopt-d9070ebb
// ```
type VpcDhcpOptions struct {
pulumi.CustomResourceState
// The ARN of the DHCP Options Set.
Arn pulumi.StringOutput `pulumi:"arn"`
// the suffix domain name to use by default when resolving non Fully Qualified Domain Names. In other words, this is what ends up being the `search` value in the `/etc/resolv.conf` file.
DomainName pulumi.StringPtrOutput `pulumi:"domainName"`
// List of name servers to configure in `/etc/resolv.conf`. If you want to use the default AWS nameservers you should set this to `AmazonProvidedDNS`.
DomainNameServers pulumi.StringArrayOutput `pulumi:"domainNameServers"`
// How frequently, in seconds, a running instance with an IPv6 assigned to it goes through DHCPv6 lease renewal. Acceptable values are between 140 and 2147483647 (approximately 68 years). If no value is entered, the default lease time is 140 seconds. If you use long-term addressing for EC2 instances, you can increase the lease time and avoid frequent lease renewal requests. Lease renewal typically occurs when half of the lease time has elapsed.
Ipv6AddressPreferredLeaseTime pulumi.StringPtrOutput `pulumi:"ipv6AddressPreferredLeaseTime"`
// List of NETBIOS name servers.
NetbiosNameServers pulumi.StringArrayOutput `pulumi:"netbiosNameServers"`
// The NetBIOS node type (1, 2, 4, or 8). AWS recommends to specify 2 since broadcast and multicast are not supported in their network. For more information about these node types, see [RFC 2132](http://www.ietf.org/rfc/rfc2132.txt).
NetbiosNodeType pulumi.StringPtrOutput `pulumi:"netbiosNodeType"`
// List of NTP servers to configure.
NtpServers pulumi.StringArrayOutput `pulumi:"ntpServers"`
// The ID of the AWS account that owns the DHCP options set.
OwnerId pulumi.StringOutput `pulumi:"ownerId"`
// A map of tags to assign to the resource. .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.
//
// Deprecated: Please use `tags` instead.
TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"`
}
// NewVpcDhcpOptions registers a new resource with the given unique name, arguments, and options.
func NewVpcDhcpOptions(ctx *pulumi.Context,
name string, args *VpcDhcpOptionsArgs, opts ...pulumi.ResourceOption) (*VpcDhcpOptions, error) {
if args == nil {
args = &VpcDhcpOptionsArgs{}
}
opts = internal.PkgResourceDefaultOpts(opts)
var resource VpcDhcpOptions
err := ctx.RegisterResource("aws:ec2/vpcDhcpOptions:VpcDhcpOptions", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetVpcDhcpOptions gets an existing VpcDhcpOptions 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 GetVpcDhcpOptions(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *VpcDhcpOptionsState, opts ...pulumi.ResourceOption) (*VpcDhcpOptions, error) {
var resource VpcDhcpOptions
err := ctx.ReadResource("aws:ec2/vpcDhcpOptions:VpcDhcpOptions", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering VpcDhcpOptions resources.
type vpcDhcpOptionsState struct {
// The ARN of the DHCP Options Set.
Arn *string `pulumi:"arn"`
// the suffix domain name to use by default when resolving non Fully Qualified Domain Names. In other words, this is what ends up being the `search` value in the `/etc/resolv.conf` file.
DomainName *string `pulumi:"domainName"`
// List of name servers to configure in `/etc/resolv.conf`. If you want to use the default AWS nameservers you should set this to `AmazonProvidedDNS`.
DomainNameServers []string `pulumi:"domainNameServers"`
// How frequently, in seconds, a running instance with an IPv6 assigned to it goes through DHCPv6 lease renewal. Acceptable values are between 140 and 2147483647 (approximately 68 years). If no value is entered, the default lease time is 140 seconds. If you use long-term addressing for EC2 instances, you can increase the lease time and avoid frequent lease renewal requests. Lease renewal typically occurs when half of the lease time has elapsed.
Ipv6AddressPreferredLeaseTime *string `pulumi:"ipv6AddressPreferredLeaseTime"`
// List of NETBIOS name servers.
NetbiosNameServers []string `pulumi:"netbiosNameServers"`
// The NetBIOS node type (1, 2, 4, or 8). AWS recommends to specify 2 since broadcast and multicast are not supported in their network. For more information about these node types, see [RFC 2132](http://www.ietf.org/rfc/rfc2132.txt).
NetbiosNodeType *string `pulumi:"netbiosNodeType"`
// List of NTP servers to configure.
NtpServers []string `pulumi:"ntpServers"`
// The ID of the AWS account that owns the DHCP options set.
OwnerId *string `pulumi:"ownerId"`
// A map of tags to assign to the resource. .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.
//
// Deprecated: Please use `tags` instead.
TagsAll map[string]string `pulumi:"tagsAll"`
}
type VpcDhcpOptionsState struct {
// The ARN of the DHCP Options Set.
Arn pulumi.StringPtrInput
// the suffix domain name to use by default when resolving non Fully Qualified Domain Names. In other words, this is what ends up being the `search` value in the `/etc/resolv.conf` file.
DomainName pulumi.StringPtrInput
// List of name servers to configure in `/etc/resolv.conf`. If you want to use the default AWS nameservers you should set this to `AmazonProvidedDNS`.
DomainNameServers pulumi.StringArrayInput
// How frequently, in seconds, a running instance with an IPv6 assigned to it goes through DHCPv6 lease renewal. Acceptable values are between 140 and 2147483647 (approximately 68 years). If no value is entered, the default lease time is 140 seconds. If you use long-term addressing for EC2 instances, you can increase the lease time and avoid frequent lease renewal requests. Lease renewal typically occurs when half of the lease time has elapsed.
Ipv6AddressPreferredLeaseTime pulumi.StringPtrInput
// List of NETBIOS name servers.
NetbiosNameServers pulumi.StringArrayInput
// The NetBIOS node type (1, 2, 4, or 8). AWS recommends to specify 2 since broadcast and multicast are not supported in their network. For more information about these node types, see [RFC 2132](http://www.ietf.org/rfc/rfc2132.txt).
NetbiosNodeType pulumi.StringPtrInput
// List of NTP servers to configure.
NtpServers pulumi.StringArrayInput
// The ID of the AWS account that owns the DHCP options set.
OwnerId pulumi.StringPtrInput
// A map of tags to assign to the resource. .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.
//
// Deprecated: Please use `tags` instead.
TagsAll pulumi.StringMapInput
}
func (VpcDhcpOptionsState) ElementType() reflect.Type {
return reflect.TypeOf((*vpcDhcpOptionsState)(nil)).Elem()
}
type vpcDhcpOptionsArgs struct {
// the suffix domain name to use by default when resolving non Fully Qualified Domain Names. In other words, this is what ends up being the `search` value in the `/etc/resolv.conf` file.
DomainName *string `pulumi:"domainName"`
// List of name servers to configure in `/etc/resolv.conf`. If you want to use the default AWS nameservers you should set this to `AmazonProvidedDNS`.
DomainNameServers []string `pulumi:"domainNameServers"`
// How frequently, in seconds, a running instance with an IPv6 assigned to it goes through DHCPv6 lease renewal. Acceptable values are between 140 and 2147483647 (approximately 68 years). If no value is entered, the default lease time is 140 seconds. If you use long-term addressing for EC2 instances, you can increase the lease time and avoid frequent lease renewal requests. Lease renewal typically occurs when half of the lease time has elapsed.
Ipv6AddressPreferredLeaseTime *string `pulumi:"ipv6AddressPreferredLeaseTime"`
// List of NETBIOS name servers.
NetbiosNameServers []string `pulumi:"netbiosNameServers"`
// The NetBIOS node type (1, 2, 4, or 8). AWS recommends to specify 2 since broadcast and multicast are not supported in their network. For more information about these node types, see [RFC 2132](http://www.ietf.org/rfc/rfc2132.txt).
NetbiosNodeType *string `pulumi:"netbiosNodeType"`
// List of NTP servers to configure.
NtpServers []string `pulumi:"ntpServers"`
// A map of tags to assign to the resource. .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 set of arguments for constructing a VpcDhcpOptions resource.
type VpcDhcpOptionsArgs struct {
// the suffix domain name to use by default when resolving non Fully Qualified Domain Names. In other words, this is what ends up being the `search` value in the `/etc/resolv.conf` file.
DomainName pulumi.StringPtrInput
// List of name servers to configure in `/etc/resolv.conf`. If you want to use the default AWS nameservers you should set this to `AmazonProvidedDNS`.
DomainNameServers pulumi.StringArrayInput
// How frequently, in seconds, a running instance with an IPv6 assigned to it goes through DHCPv6 lease renewal. Acceptable values are between 140 and 2147483647 (approximately 68 years). If no value is entered, the default lease time is 140 seconds. If you use long-term addressing for EC2 instances, you can increase the lease time and avoid frequent lease renewal requests. Lease renewal typically occurs when half of the lease time has elapsed.
Ipv6AddressPreferredLeaseTime pulumi.StringPtrInput
// List of NETBIOS name servers.
NetbiosNameServers pulumi.StringArrayInput
// The NetBIOS node type (1, 2, 4, or 8). AWS recommends to specify 2 since broadcast and multicast are not supported in their network. For more information about these node types, see [RFC 2132](http://www.ietf.org/rfc/rfc2132.txt).
NetbiosNodeType pulumi.StringPtrInput
// List of NTP servers to configure.
NtpServers pulumi.StringArrayInput
// A map of tags to assign to the resource. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Tags pulumi.StringMapInput
}
func (VpcDhcpOptionsArgs) ElementType() reflect.Type {
return reflect.TypeOf((*vpcDhcpOptionsArgs)(nil)).Elem()
}
type VpcDhcpOptionsInput interface {
pulumi.Input
ToVpcDhcpOptionsOutput() VpcDhcpOptionsOutput
ToVpcDhcpOptionsOutputWithContext(ctx context.Context) VpcDhcpOptionsOutput
}
func (*VpcDhcpOptions) ElementType() reflect.Type {
return reflect.TypeOf((**VpcDhcpOptions)(nil)).Elem()
}
func (i *VpcDhcpOptions) ToVpcDhcpOptionsOutput() VpcDhcpOptionsOutput {
return i.ToVpcDhcpOptionsOutputWithContext(context.Background())
}
func (i *VpcDhcpOptions) ToVpcDhcpOptionsOutputWithContext(ctx context.Context) VpcDhcpOptionsOutput {
return pulumi.ToOutputWithContext(ctx, i).(VpcDhcpOptionsOutput)
}
// VpcDhcpOptionsArrayInput is an input type that accepts VpcDhcpOptionsArray and VpcDhcpOptionsArrayOutput values.
// You can construct a concrete instance of `VpcDhcpOptionsArrayInput` via:
//
// VpcDhcpOptionsArray{ VpcDhcpOptionsArgs{...} }
type VpcDhcpOptionsArrayInput interface {
pulumi.Input
ToVpcDhcpOptionsArrayOutput() VpcDhcpOptionsArrayOutput
ToVpcDhcpOptionsArrayOutputWithContext(context.Context) VpcDhcpOptionsArrayOutput
}
type VpcDhcpOptionsArray []VpcDhcpOptionsInput
func (VpcDhcpOptionsArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*VpcDhcpOptions)(nil)).Elem()
}
func (i VpcDhcpOptionsArray) ToVpcDhcpOptionsArrayOutput() VpcDhcpOptionsArrayOutput {
return i.ToVpcDhcpOptionsArrayOutputWithContext(context.Background())
}
func (i VpcDhcpOptionsArray) ToVpcDhcpOptionsArrayOutputWithContext(ctx context.Context) VpcDhcpOptionsArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(VpcDhcpOptionsArrayOutput)
}
// VpcDhcpOptionsMapInput is an input type that accepts VpcDhcpOptionsMap and VpcDhcpOptionsMapOutput values.
// You can construct a concrete instance of `VpcDhcpOptionsMapInput` via:
//
// VpcDhcpOptionsMap{ "key": VpcDhcpOptionsArgs{...} }
type VpcDhcpOptionsMapInput interface {
pulumi.Input
ToVpcDhcpOptionsMapOutput() VpcDhcpOptionsMapOutput
ToVpcDhcpOptionsMapOutputWithContext(context.Context) VpcDhcpOptionsMapOutput
}
type VpcDhcpOptionsMap map[string]VpcDhcpOptionsInput
func (VpcDhcpOptionsMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*VpcDhcpOptions)(nil)).Elem()
}
func (i VpcDhcpOptionsMap) ToVpcDhcpOptionsMapOutput() VpcDhcpOptionsMapOutput {
return i.ToVpcDhcpOptionsMapOutputWithContext(context.Background())
}
func (i VpcDhcpOptionsMap) ToVpcDhcpOptionsMapOutputWithContext(ctx context.Context) VpcDhcpOptionsMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(VpcDhcpOptionsMapOutput)
}
type VpcDhcpOptionsOutput struct{ *pulumi.OutputState }
func (VpcDhcpOptionsOutput) ElementType() reflect.Type {
return reflect.TypeOf((**VpcDhcpOptions)(nil)).Elem()
}
func (o VpcDhcpOptionsOutput) ToVpcDhcpOptionsOutput() VpcDhcpOptionsOutput {
return o
}
func (o VpcDhcpOptionsOutput) ToVpcDhcpOptionsOutputWithContext(ctx context.Context) VpcDhcpOptionsOutput {
return o
}
// The ARN of the DHCP Options Set.
func (o VpcDhcpOptionsOutput) Arn() pulumi.StringOutput {
return o.ApplyT(func(v *VpcDhcpOptions) pulumi.StringOutput { return v.Arn }).(pulumi.StringOutput)
}
// the suffix domain name to use by default when resolving non Fully Qualified Domain Names. In other words, this is what ends up being the `search` value in the `/etc/resolv.conf` file.
func (o VpcDhcpOptionsOutput) DomainName() pulumi.StringPtrOutput {
return o.ApplyT(func(v *VpcDhcpOptions) pulumi.StringPtrOutput { return v.DomainName }).(pulumi.StringPtrOutput)
}
// List of name servers to configure in `/etc/resolv.conf`. If you want to use the default AWS nameservers you should set this to `AmazonProvidedDNS`.
func (o VpcDhcpOptionsOutput) DomainNameServers() pulumi.StringArrayOutput {
return o.ApplyT(func(v *VpcDhcpOptions) pulumi.StringArrayOutput { return v.DomainNameServers }).(pulumi.StringArrayOutput)
}
// How frequently, in seconds, a running instance with an IPv6 assigned to it goes through DHCPv6 lease renewal. Acceptable values are between 140 and 2147483647 (approximately 68 years). If no value is entered, the default lease time is 140 seconds. If you use long-term addressing for EC2 instances, you can increase the lease time and avoid frequent lease renewal requests. Lease renewal typically occurs when half of the lease time has elapsed.
func (o VpcDhcpOptionsOutput) Ipv6AddressPreferredLeaseTime() pulumi.StringPtrOutput {
return o.ApplyT(func(v *VpcDhcpOptions) pulumi.StringPtrOutput { return v.Ipv6AddressPreferredLeaseTime }).(pulumi.StringPtrOutput)
}
// List of NETBIOS name servers.
func (o VpcDhcpOptionsOutput) NetbiosNameServers() pulumi.StringArrayOutput {
return o.ApplyT(func(v *VpcDhcpOptions) pulumi.StringArrayOutput { return v.NetbiosNameServers }).(pulumi.StringArrayOutput)
}
// The NetBIOS node type (1, 2, 4, or 8). AWS recommends to specify 2 since broadcast and multicast are not supported in their network. For more information about these node types, see [RFC 2132](http://www.ietf.org/rfc/rfc2132.txt).
func (o VpcDhcpOptionsOutput) NetbiosNodeType() pulumi.StringPtrOutput {
return o.ApplyT(func(v *VpcDhcpOptions) pulumi.StringPtrOutput { return v.NetbiosNodeType }).(pulumi.StringPtrOutput)
}
// List of NTP servers to configure.
func (o VpcDhcpOptionsOutput) NtpServers() pulumi.StringArrayOutput {
return o.ApplyT(func(v *VpcDhcpOptions) pulumi.StringArrayOutput { return v.NtpServers }).(pulumi.StringArrayOutput)
}
// The ID of the AWS account that owns the DHCP options set.
func (o VpcDhcpOptionsOutput) OwnerId() pulumi.StringOutput {
return o.ApplyT(func(v *VpcDhcpOptions) pulumi.StringOutput { return v.OwnerId }).(pulumi.StringOutput)
}
// A map of tags to assign to the resource. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
func (o VpcDhcpOptionsOutput) Tags() pulumi.StringMapOutput {
return o.ApplyT(func(v *VpcDhcpOptions) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput)
}
// A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
//
// Deprecated: Please use `tags` instead.
func (o VpcDhcpOptionsOutput) TagsAll() pulumi.StringMapOutput {
return o.ApplyT(func(v *VpcDhcpOptions) pulumi.StringMapOutput { return v.TagsAll }).(pulumi.StringMapOutput)
}
type VpcDhcpOptionsArrayOutput struct{ *pulumi.OutputState }
func (VpcDhcpOptionsArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*VpcDhcpOptions)(nil)).Elem()
}
func (o VpcDhcpOptionsArrayOutput) ToVpcDhcpOptionsArrayOutput() VpcDhcpOptionsArrayOutput {
return o
}
func (o VpcDhcpOptionsArrayOutput) ToVpcDhcpOptionsArrayOutputWithContext(ctx context.Context) VpcDhcpOptionsArrayOutput {
return o
}
func (o VpcDhcpOptionsArrayOutput) Index(i pulumi.IntInput) VpcDhcpOptionsOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *VpcDhcpOptions {
return vs[0].([]*VpcDhcpOptions)[vs[1].(int)]
}).(VpcDhcpOptionsOutput)
}
type VpcDhcpOptionsMapOutput struct{ *pulumi.OutputState }
func (VpcDhcpOptionsMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*VpcDhcpOptions)(nil)).Elem()
}
func (o VpcDhcpOptionsMapOutput) ToVpcDhcpOptionsMapOutput() VpcDhcpOptionsMapOutput {
return o
}
func (o VpcDhcpOptionsMapOutput) ToVpcDhcpOptionsMapOutputWithContext(ctx context.Context) VpcDhcpOptionsMapOutput {
return o
}
func (o VpcDhcpOptionsMapOutput) MapIndex(k pulumi.StringInput) VpcDhcpOptionsOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *VpcDhcpOptions {
return vs[0].(map[string]*VpcDhcpOptions)[vs[1].(string)]
}).(VpcDhcpOptionsOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*VpcDhcpOptionsInput)(nil)).Elem(), &VpcDhcpOptions{})
pulumi.RegisterInputType(reflect.TypeOf((*VpcDhcpOptionsArrayInput)(nil)).Elem(), VpcDhcpOptionsArray{})
pulumi.RegisterInputType(reflect.TypeOf((*VpcDhcpOptionsMapInput)(nil)).Elem(), VpcDhcpOptionsMap{})
pulumi.RegisterOutputType(VpcDhcpOptionsOutput{})
pulumi.RegisterOutputType(VpcDhcpOptionsArrayOutput{})
pulumi.RegisterOutputType(VpcDhcpOptionsMapOutput{})
}