/
openZfsFileSystem.go
465 lines (419 loc) · 26.8 KB
/
openZfsFileSystem.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
// *** 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 fsx
import (
"context"
"reflect"
"github.com/pkg/errors"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Manages an Amazon FSx for OpenZFS file system.
// See the [FSx OpenZFS User Guide](https://docs.aws.amazon.com/fsx/latest/OpenZFSGuide/what-is-fsx.html) for more information.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
// "github.com/pulumi/pulumi-aws/sdk/v4/go/aws/fsx"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// _, err := fsx.NewOpenZfsFileSystem(ctx, "test", &fsx.OpenZfsFileSystemArgs{
// StorageCapacity: pulumi.Int(64),
// SubnetIds: pulumi.String{
// aws_subnet.Test1.Id,
// },
// DeploymentType: pulumi.String("SINGLE_AZ_1"),
// ThroughputCapacity: pulumi.Int(64),
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
// ```
//
// ## Import
//
// FSx File Systems can be imported using the `id`, e.g.,
//
// ```sh
// $ pulumi import aws:fsx/openZfsFileSystem:OpenZfsFileSystem example fs-543ab12b1ca672f33
// ```
//
// Certain resource arguments, like `security_group_ids`, do not have a FSx API method for reading the information after creation. If the argument is set in the Terraform configuration on an imported resource, Terraform will always show a difference. To workaround this behavior, either omit the argument from the Terraform configuration or use [`ignore_changes`](https://www.terraform.io/docs/configuration/meta-arguments/lifecycle.html#ignore_changes) to hide the difference, e.g., terraform resource "aws_fsx_openzfs_file_system" "example" {
//
// # ... other configuration ...
//
// security_group_ids = [aws_security_group.example.id]
//
// # There is no FSx API for reading security_group_ids
//
// lifecycle {
//
// ignore_changes = [security_group_ids]
//
// } }
type OpenZfsFileSystem struct {
pulumi.CustomResourceState
// Amazon Resource Name of the file system.
Arn pulumi.StringOutput `pulumi:"arn"`
// The number of days to retain automatic backups. Setting this to 0 disables automatic backups. You can retain automatic backups for a maximum of 90 days.
AutomaticBackupRetentionDays pulumi.IntPtrOutput `pulumi:"automaticBackupRetentionDays"`
// The ID of the source backup to create the filesystem from.
BackupId pulumi.StringPtrOutput `pulumi:"backupId"`
// A boolean flag indicating whether tags for the file system should be copied to backups. The default value is false.
CopyTagsToBackups pulumi.BoolPtrOutput `pulumi:"copyTagsToBackups"`
// A boolean flag indicating whether tags for the file system should be copied to snapshots. The default value is false.
CopyTagsToVolumes pulumi.BoolPtrOutput `pulumi:"copyTagsToVolumes"`
// A recurring daily time, in the format HH:MM. HH is the zero-padded hour of the day (0-23), and MM is the zero-padded minute of the hour. For example, 05:00 specifies 5 AM daily. Requires `automaticBackupRetentionDays` to be set.
DailyAutomaticBackupStartTime pulumi.StringOutput `pulumi:"dailyAutomaticBackupStartTime"`
// - The filesystem deployment type. Only `SINGLE_AZ_1` is supported.
DeploymentType pulumi.StringOutput `pulumi:"deploymentType"`
// The SSD IOPS configuration for the Amazon FSx for OpenZFS file system. See Disk Iops Configuration Below.
DiskIopsConfiguration OpenZfsFileSystemDiskIopsConfigurationOutput `pulumi:"diskIopsConfiguration"`
// DNS name for the file system, e.g., `fs-12345678.fsx.us-west-2.amazonaws.com`
DnsName pulumi.StringOutput `pulumi:"dnsName"`
// ARN for the KMS Key to encrypt the file system at rest, Defaults to an AWS managed KMS Key.
KmsKeyId pulumi.StringOutput `pulumi:"kmsKeyId"`
// Set of Elastic Network Interface identifiers from which the file system is accessible The first network interface returned is the primary network interface.
NetworkInterfaceIds pulumi.StringArrayOutput `pulumi:"networkInterfaceIds"`
// AWS account identifier that created the file system.
OwnerId pulumi.StringOutput `pulumi:"ownerId"`
// The configuration for the root volume of the file system. All other volumes are children or the root volume. See Root Volume Configuration Below.
RootVolumeConfiguration OpenZfsFileSystemRootVolumeConfigurationOutput `pulumi:"rootVolumeConfiguration"`
// Identifier of the root volume, e.g., `fsvol-12345678`
RootVolumeId pulumi.StringOutput `pulumi:"rootVolumeId"`
// A list of IDs for the security groups that apply to the specified network interfaces created for file system access. These security groups will apply to all network interfaces.
SecurityGroupIds pulumi.StringArrayOutput `pulumi:"securityGroupIds"`
// The storage capacity (GiB) of the file system. Valid values between `64` and `524288`.
StorageCapacity pulumi.IntPtrOutput `pulumi:"storageCapacity"`
// The filesystem storage type. Only `SSD` is supported.
StorageType pulumi.StringPtrOutput `pulumi:"storageType"`
// A list of IDs for the subnets that the file system will be accessible from. Exactly 1 subnet need to be provided.
SubnetIds pulumi.StringOutput `pulumi:"subnetIds"`
// A map of tags to assign to the file system. If configured with a provider [`defaultTags` configuration block](https://www.terraform.io/docs/providers/aws/index.html#default_tags-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](https://www.terraform.io/docs/providers/aws/index.html#default_tags-configuration-block).
TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"`
// Throughput (megabytes per second) of the file system in power of 2 increments. Minimum of `64` and maximum of `4096`.
ThroughputCapacity pulumi.IntOutput `pulumi:"throughputCapacity"`
// Identifier of the Virtual Private Cloud for the file system.
VpcId pulumi.StringOutput `pulumi:"vpcId"`
// The preferred start time (in `d:HH:MM` format) to perform weekly maintenance, in the UTC time zone.
WeeklyMaintenanceStartTime pulumi.StringOutput `pulumi:"weeklyMaintenanceStartTime"`
}
// NewOpenZfsFileSystem registers a new resource with the given unique name, arguments, and options.
func NewOpenZfsFileSystem(ctx *pulumi.Context,
name string, args *OpenZfsFileSystemArgs, opts ...pulumi.ResourceOption) (*OpenZfsFileSystem, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.DeploymentType == nil {
return nil, errors.New("invalid value for required argument 'DeploymentType'")
}
if args.SubnetIds == nil {
return nil, errors.New("invalid value for required argument 'SubnetIds'")
}
if args.ThroughputCapacity == nil {
return nil, errors.New("invalid value for required argument 'ThroughputCapacity'")
}
var resource OpenZfsFileSystem
err := ctx.RegisterResource("aws:fsx/openZfsFileSystem:OpenZfsFileSystem", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetOpenZfsFileSystem gets an existing OpenZfsFileSystem 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 GetOpenZfsFileSystem(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *OpenZfsFileSystemState, opts ...pulumi.ResourceOption) (*OpenZfsFileSystem, error) {
var resource OpenZfsFileSystem
err := ctx.ReadResource("aws:fsx/openZfsFileSystem:OpenZfsFileSystem", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering OpenZfsFileSystem resources.
type openZfsFileSystemState struct {
// Amazon Resource Name of the file system.
Arn *string `pulumi:"arn"`
// The number of days to retain automatic backups. Setting this to 0 disables automatic backups. You can retain automatic backups for a maximum of 90 days.
AutomaticBackupRetentionDays *int `pulumi:"automaticBackupRetentionDays"`
// The ID of the source backup to create the filesystem from.
BackupId *string `pulumi:"backupId"`
// A boolean flag indicating whether tags for the file system should be copied to backups. The default value is false.
CopyTagsToBackups *bool `pulumi:"copyTagsToBackups"`
// A boolean flag indicating whether tags for the file system should be copied to snapshots. The default value is false.
CopyTagsToVolumes *bool `pulumi:"copyTagsToVolumes"`
// A recurring daily time, in the format HH:MM. HH is the zero-padded hour of the day (0-23), and MM is the zero-padded minute of the hour. For example, 05:00 specifies 5 AM daily. Requires `automaticBackupRetentionDays` to be set.
DailyAutomaticBackupStartTime *string `pulumi:"dailyAutomaticBackupStartTime"`
// - The filesystem deployment type. Only `SINGLE_AZ_1` is supported.
DeploymentType *string `pulumi:"deploymentType"`
// The SSD IOPS configuration for the Amazon FSx for OpenZFS file system. See Disk Iops Configuration Below.
DiskIopsConfiguration *OpenZfsFileSystemDiskIopsConfiguration `pulumi:"diskIopsConfiguration"`
// DNS name for the file system, e.g., `fs-12345678.fsx.us-west-2.amazonaws.com`
DnsName *string `pulumi:"dnsName"`
// ARN for the KMS Key to encrypt the file system at rest, Defaults to an AWS managed KMS Key.
KmsKeyId *string `pulumi:"kmsKeyId"`
// Set of Elastic Network Interface identifiers from which the file system is accessible The first network interface returned is the primary network interface.
NetworkInterfaceIds []string `pulumi:"networkInterfaceIds"`
// AWS account identifier that created the file system.
OwnerId *string `pulumi:"ownerId"`
// The configuration for the root volume of the file system. All other volumes are children or the root volume. See Root Volume Configuration Below.
RootVolumeConfiguration *OpenZfsFileSystemRootVolumeConfiguration `pulumi:"rootVolumeConfiguration"`
// Identifier of the root volume, e.g., `fsvol-12345678`
RootVolumeId *string `pulumi:"rootVolumeId"`
// A list of IDs for the security groups that apply to the specified network interfaces created for file system access. These security groups will apply to all network interfaces.
SecurityGroupIds []string `pulumi:"securityGroupIds"`
// The storage capacity (GiB) of the file system. Valid values between `64` and `524288`.
StorageCapacity *int `pulumi:"storageCapacity"`
// The filesystem storage type. Only `SSD` is supported.
StorageType *string `pulumi:"storageType"`
// A list of IDs for the subnets that the file system will be accessible from. Exactly 1 subnet need to be provided.
SubnetIds *string `pulumi:"subnetIds"`
// A map of tags to assign to the file system. If configured with a provider [`defaultTags` configuration block](https://www.terraform.io/docs/providers/aws/index.html#default_tags-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](https://www.terraform.io/docs/providers/aws/index.html#default_tags-configuration-block).
TagsAll map[string]string `pulumi:"tagsAll"`
// Throughput (megabytes per second) of the file system in power of 2 increments. Minimum of `64` and maximum of `4096`.
ThroughputCapacity *int `pulumi:"throughputCapacity"`
// Identifier of the Virtual Private Cloud for the file system.
VpcId *string `pulumi:"vpcId"`
// The preferred start time (in `d:HH:MM` format) to perform weekly maintenance, in the UTC time zone.
WeeklyMaintenanceStartTime *string `pulumi:"weeklyMaintenanceStartTime"`
}
type OpenZfsFileSystemState struct {
// Amazon Resource Name of the file system.
Arn pulumi.StringPtrInput
// The number of days to retain automatic backups. Setting this to 0 disables automatic backups. You can retain automatic backups for a maximum of 90 days.
AutomaticBackupRetentionDays pulumi.IntPtrInput
// The ID of the source backup to create the filesystem from.
BackupId pulumi.StringPtrInput
// A boolean flag indicating whether tags for the file system should be copied to backups. The default value is false.
CopyTagsToBackups pulumi.BoolPtrInput
// A boolean flag indicating whether tags for the file system should be copied to snapshots. The default value is false.
CopyTagsToVolumes pulumi.BoolPtrInput
// A recurring daily time, in the format HH:MM. HH is the zero-padded hour of the day (0-23), and MM is the zero-padded minute of the hour. For example, 05:00 specifies 5 AM daily. Requires `automaticBackupRetentionDays` to be set.
DailyAutomaticBackupStartTime pulumi.StringPtrInput
// - The filesystem deployment type. Only `SINGLE_AZ_1` is supported.
DeploymentType pulumi.StringPtrInput
// The SSD IOPS configuration for the Amazon FSx for OpenZFS file system. See Disk Iops Configuration Below.
DiskIopsConfiguration OpenZfsFileSystemDiskIopsConfigurationPtrInput
// DNS name for the file system, e.g., `fs-12345678.fsx.us-west-2.amazonaws.com`
DnsName pulumi.StringPtrInput
// ARN for the KMS Key to encrypt the file system at rest, Defaults to an AWS managed KMS Key.
KmsKeyId pulumi.StringPtrInput
// Set of Elastic Network Interface identifiers from which the file system is accessible The first network interface returned is the primary network interface.
NetworkInterfaceIds pulumi.StringArrayInput
// AWS account identifier that created the file system.
OwnerId pulumi.StringPtrInput
// The configuration for the root volume of the file system. All other volumes are children or the root volume. See Root Volume Configuration Below.
RootVolumeConfiguration OpenZfsFileSystemRootVolumeConfigurationPtrInput
// Identifier of the root volume, e.g., `fsvol-12345678`
RootVolumeId pulumi.StringPtrInput
// A list of IDs for the security groups that apply to the specified network interfaces created for file system access. These security groups will apply to all network interfaces.
SecurityGroupIds pulumi.StringArrayInput
// The storage capacity (GiB) of the file system. Valid values between `64` and `524288`.
StorageCapacity pulumi.IntPtrInput
// The filesystem storage type. Only `SSD` is supported.
StorageType pulumi.StringPtrInput
// A list of IDs for the subnets that the file system will be accessible from. Exactly 1 subnet need to be provided.
SubnetIds pulumi.StringPtrInput
// A map of tags to assign to the file system. If configured with a provider [`defaultTags` configuration block](https://www.terraform.io/docs/providers/aws/index.html#default_tags-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](https://www.terraform.io/docs/providers/aws/index.html#default_tags-configuration-block).
TagsAll pulumi.StringMapInput
// Throughput (megabytes per second) of the file system in power of 2 increments. Minimum of `64` and maximum of `4096`.
ThroughputCapacity pulumi.IntPtrInput
// Identifier of the Virtual Private Cloud for the file system.
VpcId pulumi.StringPtrInput
// The preferred start time (in `d:HH:MM` format) to perform weekly maintenance, in the UTC time zone.
WeeklyMaintenanceStartTime pulumi.StringPtrInput
}
func (OpenZfsFileSystemState) ElementType() reflect.Type {
return reflect.TypeOf((*openZfsFileSystemState)(nil)).Elem()
}
type openZfsFileSystemArgs struct {
// The number of days to retain automatic backups. Setting this to 0 disables automatic backups. You can retain automatic backups for a maximum of 90 days.
AutomaticBackupRetentionDays *int `pulumi:"automaticBackupRetentionDays"`
// The ID of the source backup to create the filesystem from.
BackupId *string `pulumi:"backupId"`
// A boolean flag indicating whether tags for the file system should be copied to backups. The default value is false.
CopyTagsToBackups *bool `pulumi:"copyTagsToBackups"`
// A boolean flag indicating whether tags for the file system should be copied to snapshots. The default value is false.
CopyTagsToVolumes *bool `pulumi:"copyTagsToVolumes"`
// A recurring daily time, in the format HH:MM. HH is the zero-padded hour of the day (0-23), and MM is the zero-padded minute of the hour. For example, 05:00 specifies 5 AM daily. Requires `automaticBackupRetentionDays` to be set.
DailyAutomaticBackupStartTime *string `pulumi:"dailyAutomaticBackupStartTime"`
// - The filesystem deployment type. Only `SINGLE_AZ_1` is supported.
DeploymentType string `pulumi:"deploymentType"`
// The SSD IOPS configuration for the Amazon FSx for OpenZFS file system. See Disk Iops Configuration Below.
DiskIopsConfiguration *OpenZfsFileSystemDiskIopsConfiguration `pulumi:"diskIopsConfiguration"`
// ARN for the KMS Key to encrypt the file system at rest, Defaults to an AWS managed KMS Key.
KmsKeyId *string `pulumi:"kmsKeyId"`
// The configuration for the root volume of the file system. All other volumes are children or the root volume. See Root Volume Configuration Below.
RootVolumeConfiguration *OpenZfsFileSystemRootVolumeConfiguration `pulumi:"rootVolumeConfiguration"`
// A list of IDs for the security groups that apply to the specified network interfaces created for file system access. These security groups will apply to all network interfaces.
SecurityGroupIds []string `pulumi:"securityGroupIds"`
// The storage capacity (GiB) of the file system. Valid values between `64` and `524288`.
StorageCapacity *int `pulumi:"storageCapacity"`
// The filesystem storage type. Only `SSD` is supported.
StorageType *string `pulumi:"storageType"`
// A list of IDs for the subnets that the file system will be accessible from. Exactly 1 subnet need to be provided.
SubnetIds string `pulumi:"subnetIds"`
// A map of tags to assign to the file system. If configured with a provider [`defaultTags` configuration block](https://www.terraform.io/docs/providers/aws/index.html#default_tags-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](https://www.terraform.io/docs/providers/aws/index.html#default_tags-configuration-block).
TagsAll map[string]string `pulumi:"tagsAll"`
// Throughput (megabytes per second) of the file system in power of 2 increments. Minimum of `64` and maximum of `4096`.
ThroughputCapacity int `pulumi:"throughputCapacity"`
// The preferred start time (in `d:HH:MM` format) to perform weekly maintenance, in the UTC time zone.
WeeklyMaintenanceStartTime *string `pulumi:"weeklyMaintenanceStartTime"`
}
// The set of arguments for constructing a OpenZfsFileSystem resource.
type OpenZfsFileSystemArgs struct {
// The number of days to retain automatic backups. Setting this to 0 disables automatic backups. You can retain automatic backups for a maximum of 90 days.
AutomaticBackupRetentionDays pulumi.IntPtrInput
// The ID of the source backup to create the filesystem from.
BackupId pulumi.StringPtrInput
// A boolean flag indicating whether tags for the file system should be copied to backups. The default value is false.
CopyTagsToBackups pulumi.BoolPtrInput
// A boolean flag indicating whether tags for the file system should be copied to snapshots. The default value is false.
CopyTagsToVolumes pulumi.BoolPtrInput
// A recurring daily time, in the format HH:MM. HH is the zero-padded hour of the day (0-23), and MM is the zero-padded minute of the hour. For example, 05:00 specifies 5 AM daily. Requires `automaticBackupRetentionDays` to be set.
DailyAutomaticBackupStartTime pulumi.StringPtrInput
// - The filesystem deployment type. Only `SINGLE_AZ_1` is supported.
DeploymentType pulumi.StringInput
// The SSD IOPS configuration for the Amazon FSx for OpenZFS file system. See Disk Iops Configuration Below.
DiskIopsConfiguration OpenZfsFileSystemDiskIopsConfigurationPtrInput
// ARN for the KMS Key to encrypt the file system at rest, Defaults to an AWS managed KMS Key.
KmsKeyId pulumi.StringPtrInput
// The configuration for the root volume of the file system. All other volumes are children or the root volume. See Root Volume Configuration Below.
RootVolumeConfiguration OpenZfsFileSystemRootVolumeConfigurationPtrInput
// A list of IDs for the security groups that apply to the specified network interfaces created for file system access. These security groups will apply to all network interfaces.
SecurityGroupIds pulumi.StringArrayInput
// The storage capacity (GiB) of the file system. Valid values between `64` and `524288`.
StorageCapacity pulumi.IntPtrInput
// The filesystem storage type. Only `SSD` is supported.
StorageType pulumi.StringPtrInput
// A list of IDs for the subnets that the file system will be accessible from. Exactly 1 subnet need to be provided.
SubnetIds pulumi.StringInput
// A map of tags to assign to the file system. If configured with a provider [`defaultTags` configuration block](https://www.terraform.io/docs/providers/aws/index.html#default_tags-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](https://www.terraform.io/docs/providers/aws/index.html#default_tags-configuration-block).
TagsAll pulumi.StringMapInput
// Throughput (megabytes per second) of the file system in power of 2 increments. Minimum of `64` and maximum of `4096`.
ThroughputCapacity pulumi.IntInput
// The preferred start time (in `d:HH:MM` format) to perform weekly maintenance, in the UTC time zone.
WeeklyMaintenanceStartTime pulumi.StringPtrInput
}
func (OpenZfsFileSystemArgs) ElementType() reflect.Type {
return reflect.TypeOf((*openZfsFileSystemArgs)(nil)).Elem()
}
type OpenZfsFileSystemInput interface {
pulumi.Input
ToOpenZfsFileSystemOutput() OpenZfsFileSystemOutput
ToOpenZfsFileSystemOutputWithContext(ctx context.Context) OpenZfsFileSystemOutput
}
func (*OpenZfsFileSystem) ElementType() reflect.Type {
return reflect.TypeOf((**OpenZfsFileSystem)(nil)).Elem()
}
func (i *OpenZfsFileSystem) ToOpenZfsFileSystemOutput() OpenZfsFileSystemOutput {
return i.ToOpenZfsFileSystemOutputWithContext(context.Background())
}
func (i *OpenZfsFileSystem) ToOpenZfsFileSystemOutputWithContext(ctx context.Context) OpenZfsFileSystemOutput {
return pulumi.ToOutputWithContext(ctx, i).(OpenZfsFileSystemOutput)
}
// OpenZfsFileSystemArrayInput is an input type that accepts OpenZfsFileSystemArray and OpenZfsFileSystemArrayOutput values.
// You can construct a concrete instance of `OpenZfsFileSystemArrayInput` via:
//
// OpenZfsFileSystemArray{ OpenZfsFileSystemArgs{...} }
type OpenZfsFileSystemArrayInput interface {
pulumi.Input
ToOpenZfsFileSystemArrayOutput() OpenZfsFileSystemArrayOutput
ToOpenZfsFileSystemArrayOutputWithContext(context.Context) OpenZfsFileSystemArrayOutput
}
type OpenZfsFileSystemArray []OpenZfsFileSystemInput
func (OpenZfsFileSystemArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*OpenZfsFileSystem)(nil)).Elem()
}
func (i OpenZfsFileSystemArray) ToOpenZfsFileSystemArrayOutput() OpenZfsFileSystemArrayOutput {
return i.ToOpenZfsFileSystemArrayOutputWithContext(context.Background())
}
func (i OpenZfsFileSystemArray) ToOpenZfsFileSystemArrayOutputWithContext(ctx context.Context) OpenZfsFileSystemArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(OpenZfsFileSystemArrayOutput)
}
// OpenZfsFileSystemMapInput is an input type that accepts OpenZfsFileSystemMap and OpenZfsFileSystemMapOutput values.
// You can construct a concrete instance of `OpenZfsFileSystemMapInput` via:
//
// OpenZfsFileSystemMap{ "key": OpenZfsFileSystemArgs{...} }
type OpenZfsFileSystemMapInput interface {
pulumi.Input
ToOpenZfsFileSystemMapOutput() OpenZfsFileSystemMapOutput
ToOpenZfsFileSystemMapOutputWithContext(context.Context) OpenZfsFileSystemMapOutput
}
type OpenZfsFileSystemMap map[string]OpenZfsFileSystemInput
func (OpenZfsFileSystemMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*OpenZfsFileSystem)(nil)).Elem()
}
func (i OpenZfsFileSystemMap) ToOpenZfsFileSystemMapOutput() OpenZfsFileSystemMapOutput {
return i.ToOpenZfsFileSystemMapOutputWithContext(context.Background())
}
func (i OpenZfsFileSystemMap) ToOpenZfsFileSystemMapOutputWithContext(ctx context.Context) OpenZfsFileSystemMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(OpenZfsFileSystemMapOutput)
}
type OpenZfsFileSystemOutput struct{ *pulumi.OutputState }
func (OpenZfsFileSystemOutput) ElementType() reflect.Type {
return reflect.TypeOf((**OpenZfsFileSystem)(nil)).Elem()
}
func (o OpenZfsFileSystemOutput) ToOpenZfsFileSystemOutput() OpenZfsFileSystemOutput {
return o
}
func (o OpenZfsFileSystemOutput) ToOpenZfsFileSystemOutputWithContext(ctx context.Context) OpenZfsFileSystemOutput {
return o
}
type OpenZfsFileSystemArrayOutput struct{ *pulumi.OutputState }
func (OpenZfsFileSystemArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*OpenZfsFileSystem)(nil)).Elem()
}
func (o OpenZfsFileSystemArrayOutput) ToOpenZfsFileSystemArrayOutput() OpenZfsFileSystemArrayOutput {
return o
}
func (o OpenZfsFileSystemArrayOutput) ToOpenZfsFileSystemArrayOutputWithContext(ctx context.Context) OpenZfsFileSystemArrayOutput {
return o
}
func (o OpenZfsFileSystemArrayOutput) Index(i pulumi.IntInput) OpenZfsFileSystemOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *OpenZfsFileSystem {
return vs[0].([]*OpenZfsFileSystem)[vs[1].(int)]
}).(OpenZfsFileSystemOutput)
}
type OpenZfsFileSystemMapOutput struct{ *pulumi.OutputState }
func (OpenZfsFileSystemMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*OpenZfsFileSystem)(nil)).Elem()
}
func (o OpenZfsFileSystemMapOutput) ToOpenZfsFileSystemMapOutput() OpenZfsFileSystemMapOutput {
return o
}
func (o OpenZfsFileSystemMapOutput) ToOpenZfsFileSystemMapOutputWithContext(ctx context.Context) OpenZfsFileSystemMapOutput {
return o
}
func (o OpenZfsFileSystemMapOutput) MapIndex(k pulumi.StringInput) OpenZfsFileSystemOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *OpenZfsFileSystem {
return vs[0].(map[string]*OpenZfsFileSystem)[vs[1].(string)]
}).(OpenZfsFileSystemOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*OpenZfsFileSystemInput)(nil)).Elem(), &OpenZfsFileSystem{})
pulumi.RegisterInputType(reflect.TypeOf((*OpenZfsFileSystemArrayInput)(nil)).Elem(), OpenZfsFileSystemArray{})
pulumi.RegisterInputType(reflect.TypeOf((*OpenZfsFileSystemMapInput)(nil)).Elem(), OpenZfsFileSystemMap{})
pulumi.RegisterOutputType(OpenZfsFileSystemOutput{})
pulumi.RegisterOutputType(OpenZfsFileSystemArrayOutput{})
pulumi.RegisterOutputType(OpenZfsFileSystemMapOutput{})
}