/
datasetDelimitedText.go
625 lines (558 loc) · 32.3 KB
/
datasetDelimitedText.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
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
// 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 datafactory
import (
"context"
"reflect"
"errors"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Manages an Azure Delimited Text Dataset inside an Azure Data Factory.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
// "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/datafactory"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
// Name: pulumi.String("example-resources"),
// Location: pulumi.String("West Europe"),
// })
// if err != nil {
// return err
// }
// exampleFactory, err := datafactory.NewFactory(ctx, "example", &datafactory.FactoryArgs{
// Name: pulumi.String("example"),
// Location: example.Location,
// ResourceGroupName: example.Name,
// })
// if err != nil {
// return err
// }
// exampleLinkedServiceWeb, err := datafactory.NewLinkedServiceWeb(ctx, "example", &datafactory.LinkedServiceWebArgs{
// Name: pulumi.String("example"),
// DataFactoryId: exampleFactory.ID(),
// AuthenticationType: pulumi.String("Anonymous"),
// Url: pulumi.String("https://www.bing.com"),
// })
// if err != nil {
// return err
// }
// _, err = datafactory.NewDatasetDelimitedText(ctx, "example", &datafactory.DatasetDelimitedTextArgs{
// Name: pulumi.String("example"),
// DataFactoryId: exampleFactory.ID(),
// LinkedServiceName: exampleLinkedServiceWeb.Name,
// HttpServerLocation: &datafactory.DatasetDelimitedTextHttpServerLocationArgs{
// RelativeUrl: pulumi.String("http://www.bing.com"),
// Path: pulumi.String("foo/bar/"),
// Filename: pulumi.String("fizz.txt"),
// },
// ColumnDelimiter: pulumi.String(","),
// RowDelimiter: pulumi.String("NEW"),
// Encoding: pulumi.String("UTF-8"),
// QuoteCharacter: pulumi.String("x"),
// EscapeCharacter: pulumi.String("f"),
// FirstRowAsHeader: pulumi.Bool(true),
// NullValue: pulumi.String("NULL"),
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
//
// ## Import
//
// Data Factory Datasets can be imported using the `resource id`, e.g.
//
// ```sh
// $ pulumi import azure:datafactory/datasetDelimitedText:DatasetDelimitedText example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/datasets/example
// ```
type DatasetDelimitedText struct {
pulumi.CustomResourceState
// A map of additional properties to associate with the Data Factory Dataset.
//
// The following supported locations for a Delimited Text Dataset (exactly one of them must be set):
AdditionalProperties pulumi.StringMapOutput `pulumi:"additionalProperties"`
// List of tags that can be used for describing the Data Factory Dataset.
Annotations pulumi.StringArrayOutput `pulumi:"annotations"`
// An `azureBlobFsLocation` block as defined below.
AzureBlobFsLocation DatasetDelimitedTextAzureBlobFsLocationPtrOutput `pulumi:"azureBlobFsLocation"`
// An `azureBlobStorageLocation` block as defined below.
AzureBlobStorageLocation DatasetDelimitedTextAzureBlobStorageLocationPtrOutput `pulumi:"azureBlobStorageLocation"`
// The column delimiter. Defaults to `,`.
ColumnDelimiter pulumi.StringPtrOutput `pulumi:"columnDelimiter"`
// The compression codec used to read/write text files. Valid values are `None`, `bzip2`, `gzip`, `deflate`, `ZipDeflate`, `TarGzip`, `Tar`, `snappy` and `lz4`. Please note these values are case sensitive.
CompressionCodec pulumi.StringPtrOutput `pulumi:"compressionCodec"`
// The compression ratio for the Data Factory Dataset. Valid values are `Fastest` or `Optimal`. Please note these values are case sensitive.
CompressionLevel pulumi.StringPtrOutput `pulumi:"compressionLevel"`
// The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource.
DataFactoryId pulumi.StringOutput `pulumi:"dataFactoryId"`
// The description for the Data Factory Dataset.
Description pulumi.StringPtrOutput `pulumi:"description"`
// The encoding format for the file.
Encoding pulumi.StringPtrOutput `pulumi:"encoding"`
// The escape character. Defaults to `\`.
EscapeCharacter pulumi.StringPtrOutput `pulumi:"escapeCharacter"`
// When used as input, treat the first row of data as headers. When used as output, write the headers into the output as the first row of data. Defaults to `false`.
FirstRowAsHeader pulumi.BoolPtrOutput `pulumi:"firstRowAsHeader"`
// The folder that this Dataset is in. If not specified, the Dataset will appear at the root level.
Folder pulumi.StringPtrOutput `pulumi:"folder"`
// A `httpServerLocation` block as defined below.
//
// The following supported arguments are specific to Delimited Text Dataset:
HttpServerLocation DatasetDelimitedTextHttpServerLocationPtrOutput `pulumi:"httpServerLocation"`
// The Data Factory Linked Service name in which to associate the Dataset with.
LinkedServiceName pulumi.StringOutput `pulumi:"linkedServiceName"`
// Specifies the name of the Data Factory Dataset. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions.
Name pulumi.StringOutput `pulumi:"name"`
// The null value string. Defaults to `""`.
NullValue pulumi.StringPtrOutput `pulumi:"nullValue"`
// A map of parameters to associate with the Data Factory Dataset.
Parameters pulumi.StringMapOutput `pulumi:"parameters"`
// The quote character. Defaults to `"`.
QuoteCharacter pulumi.StringPtrOutput `pulumi:"quoteCharacter"`
// The row delimiter. Defaults to any of the following values on read: `\r\n`, `\r`, `\n`, and `\n` or `\r\n` on write by mapping data flow and Copy activity respectively.
RowDelimiter pulumi.StringPtrOutput `pulumi:"rowDelimiter"`
// A `schemaColumn` block as defined below.
SchemaColumns DatasetDelimitedTextSchemaColumnArrayOutput `pulumi:"schemaColumns"`
}
// NewDatasetDelimitedText registers a new resource with the given unique name, arguments, and options.
func NewDatasetDelimitedText(ctx *pulumi.Context,
name string, args *DatasetDelimitedTextArgs, opts ...pulumi.ResourceOption) (*DatasetDelimitedText, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.DataFactoryId == nil {
return nil, errors.New("invalid value for required argument 'DataFactoryId'")
}
if args.LinkedServiceName == nil {
return nil, errors.New("invalid value for required argument 'LinkedServiceName'")
}
opts = internal.PkgResourceDefaultOpts(opts)
var resource DatasetDelimitedText
err := ctx.RegisterResource("azure:datafactory/datasetDelimitedText:DatasetDelimitedText", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetDatasetDelimitedText gets an existing DatasetDelimitedText 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 GetDatasetDelimitedText(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *DatasetDelimitedTextState, opts ...pulumi.ResourceOption) (*DatasetDelimitedText, error) {
var resource DatasetDelimitedText
err := ctx.ReadResource("azure:datafactory/datasetDelimitedText:DatasetDelimitedText", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering DatasetDelimitedText resources.
type datasetDelimitedTextState struct {
// A map of additional properties to associate with the Data Factory Dataset.
//
// The following supported locations for a Delimited Text Dataset (exactly one of them must be set):
AdditionalProperties map[string]string `pulumi:"additionalProperties"`
// List of tags that can be used for describing the Data Factory Dataset.
Annotations []string `pulumi:"annotations"`
// An `azureBlobFsLocation` block as defined below.
AzureBlobFsLocation *DatasetDelimitedTextAzureBlobFsLocation `pulumi:"azureBlobFsLocation"`
// An `azureBlobStorageLocation` block as defined below.
AzureBlobStorageLocation *DatasetDelimitedTextAzureBlobStorageLocation `pulumi:"azureBlobStorageLocation"`
// The column delimiter. Defaults to `,`.
ColumnDelimiter *string `pulumi:"columnDelimiter"`
// The compression codec used to read/write text files. Valid values are `None`, `bzip2`, `gzip`, `deflate`, `ZipDeflate`, `TarGzip`, `Tar`, `snappy` and `lz4`. Please note these values are case sensitive.
CompressionCodec *string `pulumi:"compressionCodec"`
// The compression ratio for the Data Factory Dataset. Valid values are `Fastest` or `Optimal`. Please note these values are case sensitive.
CompressionLevel *string `pulumi:"compressionLevel"`
// The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource.
DataFactoryId *string `pulumi:"dataFactoryId"`
// The description for the Data Factory Dataset.
Description *string `pulumi:"description"`
// The encoding format for the file.
Encoding *string `pulumi:"encoding"`
// The escape character. Defaults to `\`.
EscapeCharacter *string `pulumi:"escapeCharacter"`
// When used as input, treat the first row of data as headers. When used as output, write the headers into the output as the first row of data. Defaults to `false`.
FirstRowAsHeader *bool `pulumi:"firstRowAsHeader"`
// The folder that this Dataset is in. If not specified, the Dataset will appear at the root level.
Folder *string `pulumi:"folder"`
// A `httpServerLocation` block as defined below.
//
// The following supported arguments are specific to Delimited Text Dataset:
HttpServerLocation *DatasetDelimitedTextHttpServerLocation `pulumi:"httpServerLocation"`
// The Data Factory Linked Service name in which to associate the Dataset with.
LinkedServiceName *string `pulumi:"linkedServiceName"`
// Specifies the name of the Data Factory Dataset. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions.
Name *string `pulumi:"name"`
// The null value string. Defaults to `""`.
NullValue *string `pulumi:"nullValue"`
// A map of parameters to associate with the Data Factory Dataset.
Parameters map[string]string `pulumi:"parameters"`
// The quote character. Defaults to `"`.
QuoteCharacter *string `pulumi:"quoteCharacter"`
// The row delimiter. Defaults to any of the following values on read: `\r\n`, `\r`, `\n`, and `\n` or `\r\n` on write by mapping data flow and Copy activity respectively.
RowDelimiter *string `pulumi:"rowDelimiter"`
// A `schemaColumn` block as defined below.
SchemaColumns []DatasetDelimitedTextSchemaColumn `pulumi:"schemaColumns"`
}
type DatasetDelimitedTextState struct {
// A map of additional properties to associate with the Data Factory Dataset.
//
// The following supported locations for a Delimited Text Dataset (exactly one of them must be set):
AdditionalProperties pulumi.StringMapInput
// List of tags that can be used for describing the Data Factory Dataset.
Annotations pulumi.StringArrayInput
// An `azureBlobFsLocation` block as defined below.
AzureBlobFsLocation DatasetDelimitedTextAzureBlobFsLocationPtrInput
// An `azureBlobStorageLocation` block as defined below.
AzureBlobStorageLocation DatasetDelimitedTextAzureBlobStorageLocationPtrInput
// The column delimiter. Defaults to `,`.
ColumnDelimiter pulumi.StringPtrInput
// The compression codec used to read/write text files. Valid values are `None`, `bzip2`, `gzip`, `deflate`, `ZipDeflate`, `TarGzip`, `Tar`, `snappy` and `lz4`. Please note these values are case sensitive.
CompressionCodec pulumi.StringPtrInput
// The compression ratio for the Data Factory Dataset. Valid values are `Fastest` or `Optimal`. Please note these values are case sensitive.
CompressionLevel pulumi.StringPtrInput
// The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource.
DataFactoryId pulumi.StringPtrInput
// The description for the Data Factory Dataset.
Description pulumi.StringPtrInput
// The encoding format for the file.
Encoding pulumi.StringPtrInput
// The escape character. Defaults to `\`.
EscapeCharacter pulumi.StringPtrInput
// When used as input, treat the first row of data as headers. When used as output, write the headers into the output as the first row of data. Defaults to `false`.
FirstRowAsHeader pulumi.BoolPtrInput
// The folder that this Dataset is in. If not specified, the Dataset will appear at the root level.
Folder pulumi.StringPtrInput
// A `httpServerLocation` block as defined below.
//
// The following supported arguments are specific to Delimited Text Dataset:
HttpServerLocation DatasetDelimitedTextHttpServerLocationPtrInput
// The Data Factory Linked Service name in which to associate the Dataset with.
LinkedServiceName pulumi.StringPtrInput
// Specifies the name of the Data Factory Dataset. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions.
Name pulumi.StringPtrInput
// The null value string. Defaults to `""`.
NullValue pulumi.StringPtrInput
// A map of parameters to associate with the Data Factory Dataset.
Parameters pulumi.StringMapInput
// The quote character. Defaults to `"`.
QuoteCharacter pulumi.StringPtrInput
// The row delimiter. Defaults to any of the following values on read: `\r\n`, `\r`, `\n`, and `\n` or `\r\n` on write by mapping data flow and Copy activity respectively.
RowDelimiter pulumi.StringPtrInput
// A `schemaColumn` block as defined below.
SchemaColumns DatasetDelimitedTextSchemaColumnArrayInput
}
func (DatasetDelimitedTextState) ElementType() reflect.Type {
return reflect.TypeOf((*datasetDelimitedTextState)(nil)).Elem()
}
type datasetDelimitedTextArgs struct {
// A map of additional properties to associate with the Data Factory Dataset.
//
// The following supported locations for a Delimited Text Dataset (exactly one of them must be set):
AdditionalProperties map[string]string `pulumi:"additionalProperties"`
// List of tags that can be used for describing the Data Factory Dataset.
Annotations []string `pulumi:"annotations"`
// An `azureBlobFsLocation` block as defined below.
AzureBlobFsLocation *DatasetDelimitedTextAzureBlobFsLocation `pulumi:"azureBlobFsLocation"`
// An `azureBlobStorageLocation` block as defined below.
AzureBlobStorageLocation *DatasetDelimitedTextAzureBlobStorageLocation `pulumi:"azureBlobStorageLocation"`
// The column delimiter. Defaults to `,`.
ColumnDelimiter *string `pulumi:"columnDelimiter"`
// The compression codec used to read/write text files. Valid values are `None`, `bzip2`, `gzip`, `deflate`, `ZipDeflate`, `TarGzip`, `Tar`, `snappy` and `lz4`. Please note these values are case sensitive.
CompressionCodec *string `pulumi:"compressionCodec"`
// The compression ratio for the Data Factory Dataset. Valid values are `Fastest` or `Optimal`. Please note these values are case sensitive.
CompressionLevel *string `pulumi:"compressionLevel"`
// The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource.
DataFactoryId string `pulumi:"dataFactoryId"`
// The description for the Data Factory Dataset.
Description *string `pulumi:"description"`
// The encoding format for the file.
Encoding *string `pulumi:"encoding"`
// The escape character. Defaults to `\`.
EscapeCharacter *string `pulumi:"escapeCharacter"`
// When used as input, treat the first row of data as headers. When used as output, write the headers into the output as the first row of data. Defaults to `false`.
FirstRowAsHeader *bool `pulumi:"firstRowAsHeader"`
// The folder that this Dataset is in. If not specified, the Dataset will appear at the root level.
Folder *string `pulumi:"folder"`
// A `httpServerLocation` block as defined below.
//
// The following supported arguments are specific to Delimited Text Dataset:
HttpServerLocation *DatasetDelimitedTextHttpServerLocation `pulumi:"httpServerLocation"`
// The Data Factory Linked Service name in which to associate the Dataset with.
LinkedServiceName string `pulumi:"linkedServiceName"`
// Specifies the name of the Data Factory Dataset. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions.
Name *string `pulumi:"name"`
// The null value string. Defaults to `""`.
NullValue *string `pulumi:"nullValue"`
// A map of parameters to associate with the Data Factory Dataset.
Parameters map[string]string `pulumi:"parameters"`
// The quote character. Defaults to `"`.
QuoteCharacter *string `pulumi:"quoteCharacter"`
// The row delimiter. Defaults to any of the following values on read: `\r\n`, `\r`, `\n`, and `\n` or `\r\n` on write by mapping data flow and Copy activity respectively.
RowDelimiter *string `pulumi:"rowDelimiter"`
// A `schemaColumn` block as defined below.
SchemaColumns []DatasetDelimitedTextSchemaColumn `pulumi:"schemaColumns"`
}
// The set of arguments for constructing a DatasetDelimitedText resource.
type DatasetDelimitedTextArgs struct {
// A map of additional properties to associate with the Data Factory Dataset.
//
// The following supported locations for a Delimited Text Dataset (exactly one of them must be set):
AdditionalProperties pulumi.StringMapInput
// List of tags that can be used for describing the Data Factory Dataset.
Annotations pulumi.StringArrayInput
// An `azureBlobFsLocation` block as defined below.
AzureBlobFsLocation DatasetDelimitedTextAzureBlobFsLocationPtrInput
// An `azureBlobStorageLocation` block as defined below.
AzureBlobStorageLocation DatasetDelimitedTextAzureBlobStorageLocationPtrInput
// The column delimiter. Defaults to `,`.
ColumnDelimiter pulumi.StringPtrInput
// The compression codec used to read/write text files. Valid values are `None`, `bzip2`, `gzip`, `deflate`, `ZipDeflate`, `TarGzip`, `Tar`, `snappy` and `lz4`. Please note these values are case sensitive.
CompressionCodec pulumi.StringPtrInput
// The compression ratio for the Data Factory Dataset. Valid values are `Fastest` or `Optimal`. Please note these values are case sensitive.
CompressionLevel pulumi.StringPtrInput
// The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource.
DataFactoryId pulumi.StringInput
// The description for the Data Factory Dataset.
Description pulumi.StringPtrInput
// The encoding format for the file.
Encoding pulumi.StringPtrInput
// The escape character. Defaults to `\`.
EscapeCharacter pulumi.StringPtrInput
// When used as input, treat the first row of data as headers. When used as output, write the headers into the output as the first row of data. Defaults to `false`.
FirstRowAsHeader pulumi.BoolPtrInput
// The folder that this Dataset is in. If not specified, the Dataset will appear at the root level.
Folder pulumi.StringPtrInput
// A `httpServerLocation` block as defined below.
//
// The following supported arguments are specific to Delimited Text Dataset:
HttpServerLocation DatasetDelimitedTextHttpServerLocationPtrInput
// The Data Factory Linked Service name in which to associate the Dataset with.
LinkedServiceName pulumi.StringInput
// Specifies the name of the Data Factory Dataset. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions.
Name pulumi.StringPtrInput
// The null value string. Defaults to `""`.
NullValue pulumi.StringPtrInput
// A map of parameters to associate with the Data Factory Dataset.
Parameters pulumi.StringMapInput
// The quote character. Defaults to `"`.
QuoteCharacter pulumi.StringPtrInput
// The row delimiter. Defaults to any of the following values on read: `\r\n`, `\r`, `\n`, and `\n` or `\r\n` on write by mapping data flow and Copy activity respectively.
RowDelimiter pulumi.StringPtrInput
// A `schemaColumn` block as defined below.
SchemaColumns DatasetDelimitedTextSchemaColumnArrayInput
}
func (DatasetDelimitedTextArgs) ElementType() reflect.Type {
return reflect.TypeOf((*datasetDelimitedTextArgs)(nil)).Elem()
}
type DatasetDelimitedTextInput interface {
pulumi.Input
ToDatasetDelimitedTextOutput() DatasetDelimitedTextOutput
ToDatasetDelimitedTextOutputWithContext(ctx context.Context) DatasetDelimitedTextOutput
}
func (*DatasetDelimitedText) ElementType() reflect.Type {
return reflect.TypeOf((**DatasetDelimitedText)(nil)).Elem()
}
func (i *DatasetDelimitedText) ToDatasetDelimitedTextOutput() DatasetDelimitedTextOutput {
return i.ToDatasetDelimitedTextOutputWithContext(context.Background())
}
func (i *DatasetDelimitedText) ToDatasetDelimitedTextOutputWithContext(ctx context.Context) DatasetDelimitedTextOutput {
return pulumi.ToOutputWithContext(ctx, i).(DatasetDelimitedTextOutput)
}
// DatasetDelimitedTextArrayInput is an input type that accepts DatasetDelimitedTextArray and DatasetDelimitedTextArrayOutput values.
// You can construct a concrete instance of `DatasetDelimitedTextArrayInput` via:
//
// DatasetDelimitedTextArray{ DatasetDelimitedTextArgs{...} }
type DatasetDelimitedTextArrayInput interface {
pulumi.Input
ToDatasetDelimitedTextArrayOutput() DatasetDelimitedTextArrayOutput
ToDatasetDelimitedTextArrayOutputWithContext(context.Context) DatasetDelimitedTextArrayOutput
}
type DatasetDelimitedTextArray []DatasetDelimitedTextInput
func (DatasetDelimitedTextArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*DatasetDelimitedText)(nil)).Elem()
}
func (i DatasetDelimitedTextArray) ToDatasetDelimitedTextArrayOutput() DatasetDelimitedTextArrayOutput {
return i.ToDatasetDelimitedTextArrayOutputWithContext(context.Background())
}
func (i DatasetDelimitedTextArray) ToDatasetDelimitedTextArrayOutputWithContext(ctx context.Context) DatasetDelimitedTextArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(DatasetDelimitedTextArrayOutput)
}
// DatasetDelimitedTextMapInput is an input type that accepts DatasetDelimitedTextMap and DatasetDelimitedTextMapOutput values.
// You can construct a concrete instance of `DatasetDelimitedTextMapInput` via:
//
// DatasetDelimitedTextMap{ "key": DatasetDelimitedTextArgs{...} }
type DatasetDelimitedTextMapInput interface {
pulumi.Input
ToDatasetDelimitedTextMapOutput() DatasetDelimitedTextMapOutput
ToDatasetDelimitedTextMapOutputWithContext(context.Context) DatasetDelimitedTextMapOutput
}
type DatasetDelimitedTextMap map[string]DatasetDelimitedTextInput
func (DatasetDelimitedTextMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*DatasetDelimitedText)(nil)).Elem()
}
func (i DatasetDelimitedTextMap) ToDatasetDelimitedTextMapOutput() DatasetDelimitedTextMapOutput {
return i.ToDatasetDelimitedTextMapOutputWithContext(context.Background())
}
func (i DatasetDelimitedTextMap) ToDatasetDelimitedTextMapOutputWithContext(ctx context.Context) DatasetDelimitedTextMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(DatasetDelimitedTextMapOutput)
}
type DatasetDelimitedTextOutput struct{ *pulumi.OutputState }
func (DatasetDelimitedTextOutput) ElementType() reflect.Type {
return reflect.TypeOf((**DatasetDelimitedText)(nil)).Elem()
}
func (o DatasetDelimitedTextOutput) ToDatasetDelimitedTextOutput() DatasetDelimitedTextOutput {
return o
}
func (o DatasetDelimitedTextOutput) ToDatasetDelimitedTextOutputWithContext(ctx context.Context) DatasetDelimitedTextOutput {
return o
}
// A map of additional properties to associate with the Data Factory Dataset.
//
// The following supported locations for a Delimited Text Dataset (exactly one of them must be set):
func (o DatasetDelimitedTextOutput) AdditionalProperties() pulumi.StringMapOutput {
return o.ApplyT(func(v *DatasetDelimitedText) pulumi.StringMapOutput { return v.AdditionalProperties }).(pulumi.StringMapOutput)
}
// List of tags that can be used for describing the Data Factory Dataset.
func (o DatasetDelimitedTextOutput) Annotations() pulumi.StringArrayOutput {
return o.ApplyT(func(v *DatasetDelimitedText) pulumi.StringArrayOutput { return v.Annotations }).(pulumi.StringArrayOutput)
}
// An `azureBlobFsLocation` block as defined below.
func (o DatasetDelimitedTextOutput) AzureBlobFsLocation() DatasetDelimitedTextAzureBlobFsLocationPtrOutput {
return o.ApplyT(func(v *DatasetDelimitedText) DatasetDelimitedTextAzureBlobFsLocationPtrOutput {
return v.AzureBlobFsLocation
}).(DatasetDelimitedTextAzureBlobFsLocationPtrOutput)
}
// An `azureBlobStorageLocation` block as defined below.
func (o DatasetDelimitedTextOutput) AzureBlobStorageLocation() DatasetDelimitedTextAzureBlobStorageLocationPtrOutput {
return o.ApplyT(func(v *DatasetDelimitedText) DatasetDelimitedTextAzureBlobStorageLocationPtrOutput {
return v.AzureBlobStorageLocation
}).(DatasetDelimitedTextAzureBlobStorageLocationPtrOutput)
}
// The column delimiter. Defaults to `,`.
func (o DatasetDelimitedTextOutput) ColumnDelimiter() pulumi.StringPtrOutput {
return o.ApplyT(func(v *DatasetDelimitedText) pulumi.StringPtrOutput { return v.ColumnDelimiter }).(pulumi.StringPtrOutput)
}
// The compression codec used to read/write text files. Valid values are `None`, `bzip2`, `gzip`, `deflate`, `ZipDeflate`, `TarGzip`, `Tar`, `snappy` and `lz4`. Please note these values are case sensitive.
func (o DatasetDelimitedTextOutput) CompressionCodec() pulumi.StringPtrOutput {
return o.ApplyT(func(v *DatasetDelimitedText) pulumi.StringPtrOutput { return v.CompressionCodec }).(pulumi.StringPtrOutput)
}
// The compression ratio for the Data Factory Dataset. Valid values are `Fastest` or `Optimal`. Please note these values are case sensitive.
func (o DatasetDelimitedTextOutput) CompressionLevel() pulumi.StringPtrOutput {
return o.ApplyT(func(v *DatasetDelimitedText) pulumi.StringPtrOutput { return v.CompressionLevel }).(pulumi.StringPtrOutput)
}
// The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource.
func (o DatasetDelimitedTextOutput) DataFactoryId() pulumi.StringOutput {
return o.ApplyT(func(v *DatasetDelimitedText) pulumi.StringOutput { return v.DataFactoryId }).(pulumi.StringOutput)
}
// The description for the Data Factory Dataset.
func (o DatasetDelimitedTextOutput) Description() pulumi.StringPtrOutput {
return o.ApplyT(func(v *DatasetDelimitedText) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput)
}
// The encoding format for the file.
func (o DatasetDelimitedTextOutput) Encoding() pulumi.StringPtrOutput {
return o.ApplyT(func(v *DatasetDelimitedText) pulumi.StringPtrOutput { return v.Encoding }).(pulumi.StringPtrOutput)
}
// The escape character. Defaults to `\`.
func (o DatasetDelimitedTextOutput) EscapeCharacter() pulumi.StringPtrOutput {
return o.ApplyT(func(v *DatasetDelimitedText) pulumi.StringPtrOutput { return v.EscapeCharacter }).(pulumi.StringPtrOutput)
}
// When used as input, treat the first row of data as headers. When used as output, write the headers into the output as the first row of data. Defaults to `false`.
func (o DatasetDelimitedTextOutput) FirstRowAsHeader() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *DatasetDelimitedText) pulumi.BoolPtrOutput { return v.FirstRowAsHeader }).(pulumi.BoolPtrOutput)
}
// The folder that this Dataset is in. If not specified, the Dataset will appear at the root level.
func (o DatasetDelimitedTextOutput) Folder() pulumi.StringPtrOutput {
return o.ApplyT(func(v *DatasetDelimitedText) pulumi.StringPtrOutput { return v.Folder }).(pulumi.StringPtrOutput)
}
// A `httpServerLocation` block as defined below.
//
// The following supported arguments are specific to Delimited Text Dataset:
func (o DatasetDelimitedTextOutput) HttpServerLocation() DatasetDelimitedTextHttpServerLocationPtrOutput {
return o.ApplyT(func(v *DatasetDelimitedText) DatasetDelimitedTextHttpServerLocationPtrOutput {
return v.HttpServerLocation
}).(DatasetDelimitedTextHttpServerLocationPtrOutput)
}
// The Data Factory Linked Service name in which to associate the Dataset with.
func (o DatasetDelimitedTextOutput) LinkedServiceName() pulumi.StringOutput {
return o.ApplyT(func(v *DatasetDelimitedText) pulumi.StringOutput { return v.LinkedServiceName }).(pulumi.StringOutput)
}
// Specifies the name of the Data Factory Dataset. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions.
func (o DatasetDelimitedTextOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v *DatasetDelimitedText) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
}
// The null value string. Defaults to `""`.
func (o DatasetDelimitedTextOutput) NullValue() pulumi.StringPtrOutput {
return o.ApplyT(func(v *DatasetDelimitedText) pulumi.StringPtrOutput { return v.NullValue }).(pulumi.StringPtrOutput)
}
// A map of parameters to associate with the Data Factory Dataset.
func (o DatasetDelimitedTextOutput) Parameters() pulumi.StringMapOutput {
return o.ApplyT(func(v *DatasetDelimitedText) pulumi.StringMapOutput { return v.Parameters }).(pulumi.StringMapOutput)
}
// The quote character. Defaults to `"`.
func (o DatasetDelimitedTextOutput) QuoteCharacter() pulumi.StringPtrOutput {
return o.ApplyT(func(v *DatasetDelimitedText) pulumi.StringPtrOutput { return v.QuoteCharacter }).(pulumi.StringPtrOutput)
}
// The row delimiter. Defaults to any of the following values on read: `\r\n`, `\r`, `\n`, and `\n` or `\r\n` on write by mapping data flow and Copy activity respectively.
func (o DatasetDelimitedTextOutput) RowDelimiter() pulumi.StringPtrOutput {
return o.ApplyT(func(v *DatasetDelimitedText) pulumi.StringPtrOutput { return v.RowDelimiter }).(pulumi.StringPtrOutput)
}
// A `schemaColumn` block as defined below.
func (o DatasetDelimitedTextOutput) SchemaColumns() DatasetDelimitedTextSchemaColumnArrayOutput {
return o.ApplyT(func(v *DatasetDelimitedText) DatasetDelimitedTextSchemaColumnArrayOutput { return v.SchemaColumns }).(DatasetDelimitedTextSchemaColumnArrayOutput)
}
type DatasetDelimitedTextArrayOutput struct{ *pulumi.OutputState }
func (DatasetDelimitedTextArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*DatasetDelimitedText)(nil)).Elem()
}
func (o DatasetDelimitedTextArrayOutput) ToDatasetDelimitedTextArrayOutput() DatasetDelimitedTextArrayOutput {
return o
}
func (o DatasetDelimitedTextArrayOutput) ToDatasetDelimitedTextArrayOutputWithContext(ctx context.Context) DatasetDelimitedTextArrayOutput {
return o
}
func (o DatasetDelimitedTextArrayOutput) Index(i pulumi.IntInput) DatasetDelimitedTextOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *DatasetDelimitedText {
return vs[0].([]*DatasetDelimitedText)[vs[1].(int)]
}).(DatasetDelimitedTextOutput)
}
type DatasetDelimitedTextMapOutput struct{ *pulumi.OutputState }
func (DatasetDelimitedTextMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*DatasetDelimitedText)(nil)).Elem()
}
func (o DatasetDelimitedTextMapOutput) ToDatasetDelimitedTextMapOutput() DatasetDelimitedTextMapOutput {
return o
}
func (o DatasetDelimitedTextMapOutput) ToDatasetDelimitedTextMapOutputWithContext(ctx context.Context) DatasetDelimitedTextMapOutput {
return o
}
func (o DatasetDelimitedTextMapOutput) MapIndex(k pulumi.StringInput) DatasetDelimitedTextOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *DatasetDelimitedText {
return vs[0].(map[string]*DatasetDelimitedText)[vs[1].(string)]
}).(DatasetDelimitedTextOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*DatasetDelimitedTextInput)(nil)).Elem(), &DatasetDelimitedText{})
pulumi.RegisterInputType(reflect.TypeOf((*DatasetDelimitedTextArrayInput)(nil)).Elem(), DatasetDelimitedTextArray{})
pulumi.RegisterInputType(reflect.TypeOf((*DatasetDelimitedTextMapInput)(nil)).Elem(), DatasetDelimitedTextMap{})
pulumi.RegisterOutputType(DatasetDelimitedTextOutput{})
pulumi.RegisterOutputType(DatasetDelimitedTextArrayOutput{})
pulumi.RegisterOutputType(DatasetDelimitedTextMapOutput{})
}