/
linkedServiceDataLakeStorageGen2.go
452 lines (392 loc) · 23.9 KB
/
linkedServiceDataLakeStorageGen2.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
// *** 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 datafactory
import (
"context"
"reflect"
"github.com/pkg/errors"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
// Manages a Linked Service (connection) between Data Lake Storage Gen2 and Azure Data Factory.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
// "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/core"
// "github.com/pulumi/pulumi-azure/sdk/v3/go/azure/datafactory"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
// Location: pulumi.String("West Europe"),
// })
// if err != nil {
// return err
// }
// exampleFactory, err := datafactory.NewFactory(ctx, "exampleFactory", &datafactory.FactoryArgs{
// Location: exampleResourceGroup.Location,
// ResourceGroupName: exampleResourceGroup.Name,
// })
// if err != nil {
// return err
// }
// current, err := core.GetClientConfig(ctx, nil, nil)
// if err != nil {
// return err
// }
// _, err = datafactory.NewLinkedServiceDataLakeStorageGen2(ctx, "exampleLinkedServiceDataLakeStorageGen2", &datafactory.LinkedServiceDataLakeStorageGen2Args{
// ResourceGroupName: exampleResourceGroup.Name,
// DataFactoryName: exampleFactory.Name,
// ServicePrincipalId: pulumi.String(current.ClientId),
// ServicePrincipalKey: pulumi.String("exampleKey"),
// Tenant: pulumi.String("11111111-1111-1111-1111-111111111111"),
// Url: pulumi.String("https://datalakestoragegen2"),
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
// ```
//
// ## Import
//
// Data Factory Data Lake Storage Gen2 Linked Services can be imported using the `resource id`, e.g.
//
// ```sh
// $ pulumi import azure:datafactory/linkedServiceDataLakeStorageGen2:LinkedServiceDataLakeStorageGen2 example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/linkedservices/example
// ```
type LinkedServiceDataLakeStorageGen2 struct {
pulumi.CustomResourceState
// A map of additional properties to associate with the Data Factory Linked Service.
AdditionalProperties pulumi.StringMapOutput `pulumi:"additionalProperties"`
// List of tags that can be used for describing the Data Factory Linked Service.
Annotations pulumi.StringArrayOutput `pulumi:"annotations"`
// The Data Factory name in which to associate the Linked Service with. Changing this forces a new resource.
DataFactoryName pulumi.StringOutput `pulumi:"dataFactoryName"`
// The description for the Data Factory Linked Service.
Description pulumi.StringPtrOutput `pulumi:"description"`
// The integration runtime reference to associate with the Data Factory Linked Service.
IntegrationRuntimeName pulumi.StringPtrOutput `pulumi:"integrationRuntimeName"`
// Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data
// factory. See the [Microsoft documentation](https://docs.microsoft.com/en-us/azure/data-factory/naming-rules) for all restrictions.
Name pulumi.StringOutput `pulumi:"name"`
// A map of parameters to associate with the Data Factory Linked Service.
Parameters pulumi.StringMapOutput `pulumi:"parameters"`
// The name of the resource group in which to create the Data Factory Linked Service. Changing this forces a new resource
ResourceGroupName pulumi.StringOutput `pulumi:"resourceGroupName"`
// The service principal id in which to authenticate against the Azure Data Lake Storage Gen2 account. Required if `useManagedIdentity` is true.
ServicePrincipalId pulumi.StringPtrOutput `pulumi:"servicePrincipalId"`
// The service principal key in which to authenticate against the Azure Data Lake Storage Gen2 account. Required if `useManagedIdentity` is true.
ServicePrincipalKey pulumi.StringPtrOutput `pulumi:"servicePrincipalKey"`
// The tenant id or name in which to authenticate against the Azure Data Lake Storage Gen2 account.
Tenant pulumi.StringPtrOutput `pulumi:"tenant"`
// The endpoint for the Azure Data Lake Storage Gen2 service.
Url pulumi.StringOutput `pulumi:"url"`
// Whether to use the Data Factory's managed identity to authenticate against the Azure Data Lake Storage Gen2 account. Incompatible with `servicePrincipalId` and `servicePrincipalKey`
UseManagedIdentity pulumi.BoolPtrOutput `pulumi:"useManagedIdentity"`
}
// NewLinkedServiceDataLakeStorageGen2 registers a new resource with the given unique name, arguments, and options.
func NewLinkedServiceDataLakeStorageGen2(ctx *pulumi.Context,
name string, args *LinkedServiceDataLakeStorageGen2Args, opts ...pulumi.ResourceOption) (*LinkedServiceDataLakeStorageGen2, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.DataFactoryName == nil {
return nil, errors.New("invalid value for required argument 'DataFactoryName'")
}
if args.ResourceGroupName == nil {
return nil, errors.New("invalid value for required argument 'ResourceGroupName'")
}
if args.Url == nil {
return nil, errors.New("invalid value for required argument 'Url'")
}
var resource LinkedServiceDataLakeStorageGen2
err := ctx.RegisterResource("azure:datafactory/linkedServiceDataLakeStorageGen2:LinkedServiceDataLakeStorageGen2", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetLinkedServiceDataLakeStorageGen2 gets an existing LinkedServiceDataLakeStorageGen2 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 GetLinkedServiceDataLakeStorageGen2(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *LinkedServiceDataLakeStorageGen2State, opts ...pulumi.ResourceOption) (*LinkedServiceDataLakeStorageGen2, error) {
var resource LinkedServiceDataLakeStorageGen2
err := ctx.ReadResource("azure:datafactory/linkedServiceDataLakeStorageGen2:LinkedServiceDataLakeStorageGen2", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering LinkedServiceDataLakeStorageGen2 resources.
type linkedServiceDataLakeStorageGen2State struct {
// A map of additional properties to associate with the Data Factory Linked Service.
AdditionalProperties map[string]string `pulumi:"additionalProperties"`
// List of tags that can be used for describing the Data Factory Linked Service.
Annotations []string `pulumi:"annotations"`
// The Data Factory name in which to associate the Linked Service with. Changing this forces a new resource.
DataFactoryName *string `pulumi:"dataFactoryName"`
// The description for the Data Factory Linked Service.
Description *string `pulumi:"description"`
// The integration runtime reference to associate with the Data Factory Linked Service.
IntegrationRuntimeName *string `pulumi:"integrationRuntimeName"`
// Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data
// factory. See the [Microsoft documentation](https://docs.microsoft.com/en-us/azure/data-factory/naming-rules) for all restrictions.
Name *string `pulumi:"name"`
// A map of parameters to associate with the Data Factory Linked Service.
Parameters map[string]string `pulumi:"parameters"`
// The name of the resource group in which to create the Data Factory Linked Service. Changing this forces a new resource
ResourceGroupName *string `pulumi:"resourceGroupName"`
// The service principal id in which to authenticate against the Azure Data Lake Storage Gen2 account. Required if `useManagedIdentity` is true.
ServicePrincipalId *string `pulumi:"servicePrincipalId"`
// The service principal key in which to authenticate against the Azure Data Lake Storage Gen2 account. Required if `useManagedIdentity` is true.
ServicePrincipalKey *string `pulumi:"servicePrincipalKey"`
// The tenant id or name in which to authenticate against the Azure Data Lake Storage Gen2 account.
Tenant *string `pulumi:"tenant"`
// The endpoint for the Azure Data Lake Storage Gen2 service.
Url *string `pulumi:"url"`
// Whether to use the Data Factory's managed identity to authenticate against the Azure Data Lake Storage Gen2 account. Incompatible with `servicePrincipalId` and `servicePrincipalKey`
UseManagedIdentity *bool `pulumi:"useManagedIdentity"`
}
type LinkedServiceDataLakeStorageGen2State struct {
// A map of additional properties to associate with the Data Factory Linked Service.
AdditionalProperties pulumi.StringMapInput
// List of tags that can be used for describing the Data Factory Linked Service.
Annotations pulumi.StringArrayInput
// The Data Factory name in which to associate the Linked Service with. Changing this forces a new resource.
DataFactoryName pulumi.StringPtrInput
// The description for the Data Factory Linked Service.
Description pulumi.StringPtrInput
// The integration runtime reference to associate with the Data Factory Linked Service.
IntegrationRuntimeName pulumi.StringPtrInput
// Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data
// factory. See the [Microsoft documentation](https://docs.microsoft.com/en-us/azure/data-factory/naming-rules) for all restrictions.
Name pulumi.StringPtrInput
// A map of parameters to associate with the Data Factory Linked Service.
Parameters pulumi.StringMapInput
// The name of the resource group in which to create the Data Factory Linked Service. Changing this forces a new resource
ResourceGroupName pulumi.StringPtrInput
// The service principal id in which to authenticate against the Azure Data Lake Storage Gen2 account. Required if `useManagedIdentity` is true.
ServicePrincipalId pulumi.StringPtrInput
// The service principal key in which to authenticate against the Azure Data Lake Storage Gen2 account. Required if `useManagedIdentity` is true.
ServicePrincipalKey pulumi.StringPtrInput
// The tenant id or name in which to authenticate against the Azure Data Lake Storage Gen2 account.
Tenant pulumi.StringPtrInput
// The endpoint for the Azure Data Lake Storage Gen2 service.
Url pulumi.StringPtrInput
// Whether to use the Data Factory's managed identity to authenticate against the Azure Data Lake Storage Gen2 account. Incompatible with `servicePrincipalId` and `servicePrincipalKey`
UseManagedIdentity pulumi.BoolPtrInput
}
func (LinkedServiceDataLakeStorageGen2State) ElementType() reflect.Type {
return reflect.TypeOf((*linkedServiceDataLakeStorageGen2State)(nil)).Elem()
}
type linkedServiceDataLakeStorageGen2Args struct {
// A map of additional properties to associate with the Data Factory Linked Service.
AdditionalProperties map[string]string `pulumi:"additionalProperties"`
// List of tags that can be used for describing the Data Factory Linked Service.
Annotations []string `pulumi:"annotations"`
// The Data Factory name in which to associate the Linked Service with. Changing this forces a new resource.
DataFactoryName string `pulumi:"dataFactoryName"`
// The description for the Data Factory Linked Service.
Description *string `pulumi:"description"`
// The integration runtime reference to associate with the Data Factory Linked Service.
IntegrationRuntimeName *string `pulumi:"integrationRuntimeName"`
// Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data
// factory. See the [Microsoft documentation](https://docs.microsoft.com/en-us/azure/data-factory/naming-rules) for all restrictions.
Name *string `pulumi:"name"`
// A map of parameters to associate with the Data Factory Linked Service.
Parameters map[string]string `pulumi:"parameters"`
// The name of the resource group in which to create the Data Factory Linked Service. Changing this forces a new resource
ResourceGroupName string `pulumi:"resourceGroupName"`
// The service principal id in which to authenticate against the Azure Data Lake Storage Gen2 account. Required if `useManagedIdentity` is true.
ServicePrincipalId *string `pulumi:"servicePrincipalId"`
// The service principal key in which to authenticate against the Azure Data Lake Storage Gen2 account. Required if `useManagedIdentity` is true.
ServicePrincipalKey *string `pulumi:"servicePrincipalKey"`
// The tenant id or name in which to authenticate against the Azure Data Lake Storage Gen2 account.
Tenant *string `pulumi:"tenant"`
// The endpoint for the Azure Data Lake Storage Gen2 service.
Url string `pulumi:"url"`
// Whether to use the Data Factory's managed identity to authenticate against the Azure Data Lake Storage Gen2 account. Incompatible with `servicePrincipalId` and `servicePrincipalKey`
UseManagedIdentity *bool `pulumi:"useManagedIdentity"`
}
// The set of arguments for constructing a LinkedServiceDataLakeStorageGen2 resource.
type LinkedServiceDataLakeStorageGen2Args struct {
// A map of additional properties to associate with the Data Factory Linked Service.
AdditionalProperties pulumi.StringMapInput
// List of tags that can be used for describing the Data Factory Linked Service.
Annotations pulumi.StringArrayInput
// The Data Factory name in which to associate the Linked Service with. Changing this forces a new resource.
DataFactoryName pulumi.StringInput
// The description for the Data Factory Linked Service.
Description pulumi.StringPtrInput
// The integration runtime reference to associate with the Data Factory Linked Service.
IntegrationRuntimeName pulumi.StringPtrInput
// Specifies the name of the Data Factory Linked Service. Changing this forces a new resource to be created. Must be unique within a data
// factory. See the [Microsoft documentation](https://docs.microsoft.com/en-us/azure/data-factory/naming-rules) for all restrictions.
Name pulumi.StringPtrInput
// A map of parameters to associate with the Data Factory Linked Service.
Parameters pulumi.StringMapInput
// The name of the resource group in which to create the Data Factory Linked Service. Changing this forces a new resource
ResourceGroupName pulumi.StringInput
// The service principal id in which to authenticate against the Azure Data Lake Storage Gen2 account. Required if `useManagedIdentity` is true.
ServicePrincipalId pulumi.StringPtrInput
// The service principal key in which to authenticate against the Azure Data Lake Storage Gen2 account. Required if `useManagedIdentity` is true.
ServicePrincipalKey pulumi.StringPtrInput
// The tenant id or name in which to authenticate against the Azure Data Lake Storage Gen2 account.
Tenant pulumi.StringPtrInput
// The endpoint for the Azure Data Lake Storage Gen2 service.
Url pulumi.StringInput
// Whether to use the Data Factory's managed identity to authenticate against the Azure Data Lake Storage Gen2 account. Incompatible with `servicePrincipalId` and `servicePrincipalKey`
UseManagedIdentity pulumi.BoolPtrInput
}
func (LinkedServiceDataLakeStorageGen2Args) ElementType() reflect.Type {
return reflect.TypeOf((*linkedServiceDataLakeStorageGen2Args)(nil)).Elem()
}
type LinkedServiceDataLakeStorageGen2Input interface {
pulumi.Input
ToLinkedServiceDataLakeStorageGen2Output() LinkedServiceDataLakeStorageGen2Output
ToLinkedServiceDataLakeStorageGen2OutputWithContext(ctx context.Context) LinkedServiceDataLakeStorageGen2Output
}
func (*LinkedServiceDataLakeStorageGen2) ElementType() reflect.Type {
return reflect.TypeOf((*LinkedServiceDataLakeStorageGen2)(nil))
}
func (i *LinkedServiceDataLakeStorageGen2) ToLinkedServiceDataLakeStorageGen2Output() LinkedServiceDataLakeStorageGen2Output {
return i.ToLinkedServiceDataLakeStorageGen2OutputWithContext(context.Background())
}
func (i *LinkedServiceDataLakeStorageGen2) ToLinkedServiceDataLakeStorageGen2OutputWithContext(ctx context.Context) LinkedServiceDataLakeStorageGen2Output {
return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceDataLakeStorageGen2Output)
}
func (i *LinkedServiceDataLakeStorageGen2) ToLinkedServiceDataLakeStorageGen2PtrOutput() LinkedServiceDataLakeStorageGen2PtrOutput {
return i.ToLinkedServiceDataLakeStorageGen2PtrOutputWithContext(context.Background())
}
func (i *LinkedServiceDataLakeStorageGen2) ToLinkedServiceDataLakeStorageGen2PtrOutputWithContext(ctx context.Context) LinkedServiceDataLakeStorageGen2PtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceDataLakeStorageGen2PtrOutput)
}
type LinkedServiceDataLakeStorageGen2PtrInput interface {
pulumi.Input
ToLinkedServiceDataLakeStorageGen2PtrOutput() LinkedServiceDataLakeStorageGen2PtrOutput
ToLinkedServiceDataLakeStorageGen2PtrOutputWithContext(ctx context.Context) LinkedServiceDataLakeStorageGen2PtrOutput
}
type linkedServiceDataLakeStorageGen2PtrType LinkedServiceDataLakeStorageGen2Args
func (*linkedServiceDataLakeStorageGen2PtrType) ElementType() reflect.Type {
return reflect.TypeOf((**LinkedServiceDataLakeStorageGen2)(nil))
}
func (i *linkedServiceDataLakeStorageGen2PtrType) ToLinkedServiceDataLakeStorageGen2PtrOutput() LinkedServiceDataLakeStorageGen2PtrOutput {
return i.ToLinkedServiceDataLakeStorageGen2PtrOutputWithContext(context.Background())
}
func (i *linkedServiceDataLakeStorageGen2PtrType) ToLinkedServiceDataLakeStorageGen2PtrOutputWithContext(ctx context.Context) LinkedServiceDataLakeStorageGen2PtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceDataLakeStorageGen2PtrOutput)
}
// LinkedServiceDataLakeStorageGen2ArrayInput is an input type that accepts LinkedServiceDataLakeStorageGen2Array and LinkedServiceDataLakeStorageGen2ArrayOutput values.
// You can construct a concrete instance of `LinkedServiceDataLakeStorageGen2ArrayInput` via:
//
// LinkedServiceDataLakeStorageGen2Array{ LinkedServiceDataLakeStorageGen2Args{...} }
type LinkedServiceDataLakeStorageGen2ArrayInput interface {
pulumi.Input
ToLinkedServiceDataLakeStorageGen2ArrayOutput() LinkedServiceDataLakeStorageGen2ArrayOutput
ToLinkedServiceDataLakeStorageGen2ArrayOutputWithContext(context.Context) LinkedServiceDataLakeStorageGen2ArrayOutput
}
type LinkedServiceDataLakeStorageGen2Array []LinkedServiceDataLakeStorageGen2Input
func (LinkedServiceDataLakeStorageGen2Array) ElementType() reflect.Type {
return reflect.TypeOf(([]*LinkedServiceDataLakeStorageGen2)(nil))
}
func (i LinkedServiceDataLakeStorageGen2Array) ToLinkedServiceDataLakeStorageGen2ArrayOutput() LinkedServiceDataLakeStorageGen2ArrayOutput {
return i.ToLinkedServiceDataLakeStorageGen2ArrayOutputWithContext(context.Background())
}
func (i LinkedServiceDataLakeStorageGen2Array) ToLinkedServiceDataLakeStorageGen2ArrayOutputWithContext(ctx context.Context) LinkedServiceDataLakeStorageGen2ArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceDataLakeStorageGen2ArrayOutput)
}
// LinkedServiceDataLakeStorageGen2MapInput is an input type that accepts LinkedServiceDataLakeStorageGen2Map and LinkedServiceDataLakeStorageGen2MapOutput values.
// You can construct a concrete instance of `LinkedServiceDataLakeStorageGen2MapInput` via:
//
// LinkedServiceDataLakeStorageGen2Map{ "key": LinkedServiceDataLakeStorageGen2Args{...} }
type LinkedServiceDataLakeStorageGen2MapInput interface {
pulumi.Input
ToLinkedServiceDataLakeStorageGen2MapOutput() LinkedServiceDataLakeStorageGen2MapOutput
ToLinkedServiceDataLakeStorageGen2MapOutputWithContext(context.Context) LinkedServiceDataLakeStorageGen2MapOutput
}
type LinkedServiceDataLakeStorageGen2Map map[string]LinkedServiceDataLakeStorageGen2Input
func (LinkedServiceDataLakeStorageGen2Map) ElementType() reflect.Type {
return reflect.TypeOf((map[string]*LinkedServiceDataLakeStorageGen2)(nil))
}
func (i LinkedServiceDataLakeStorageGen2Map) ToLinkedServiceDataLakeStorageGen2MapOutput() LinkedServiceDataLakeStorageGen2MapOutput {
return i.ToLinkedServiceDataLakeStorageGen2MapOutputWithContext(context.Background())
}
func (i LinkedServiceDataLakeStorageGen2Map) ToLinkedServiceDataLakeStorageGen2MapOutputWithContext(ctx context.Context) LinkedServiceDataLakeStorageGen2MapOutput {
return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceDataLakeStorageGen2MapOutput)
}
type LinkedServiceDataLakeStorageGen2Output struct {
*pulumi.OutputState
}
func (LinkedServiceDataLakeStorageGen2Output) ElementType() reflect.Type {
return reflect.TypeOf((*LinkedServiceDataLakeStorageGen2)(nil))
}
func (o LinkedServiceDataLakeStorageGen2Output) ToLinkedServiceDataLakeStorageGen2Output() LinkedServiceDataLakeStorageGen2Output {
return o
}
func (o LinkedServiceDataLakeStorageGen2Output) ToLinkedServiceDataLakeStorageGen2OutputWithContext(ctx context.Context) LinkedServiceDataLakeStorageGen2Output {
return o
}
func (o LinkedServiceDataLakeStorageGen2Output) ToLinkedServiceDataLakeStorageGen2PtrOutput() LinkedServiceDataLakeStorageGen2PtrOutput {
return o.ToLinkedServiceDataLakeStorageGen2PtrOutputWithContext(context.Background())
}
func (o LinkedServiceDataLakeStorageGen2Output) ToLinkedServiceDataLakeStorageGen2PtrOutputWithContext(ctx context.Context) LinkedServiceDataLakeStorageGen2PtrOutput {
return o.ApplyT(func(v LinkedServiceDataLakeStorageGen2) *LinkedServiceDataLakeStorageGen2 {
return &v
}).(LinkedServiceDataLakeStorageGen2PtrOutput)
}
type LinkedServiceDataLakeStorageGen2PtrOutput struct {
*pulumi.OutputState
}
func (LinkedServiceDataLakeStorageGen2PtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**LinkedServiceDataLakeStorageGen2)(nil))
}
func (o LinkedServiceDataLakeStorageGen2PtrOutput) ToLinkedServiceDataLakeStorageGen2PtrOutput() LinkedServiceDataLakeStorageGen2PtrOutput {
return o
}
func (o LinkedServiceDataLakeStorageGen2PtrOutput) ToLinkedServiceDataLakeStorageGen2PtrOutputWithContext(ctx context.Context) LinkedServiceDataLakeStorageGen2PtrOutput {
return o
}
type LinkedServiceDataLakeStorageGen2ArrayOutput struct{ *pulumi.OutputState }
func (LinkedServiceDataLakeStorageGen2ArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]LinkedServiceDataLakeStorageGen2)(nil))
}
func (o LinkedServiceDataLakeStorageGen2ArrayOutput) ToLinkedServiceDataLakeStorageGen2ArrayOutput() LinkedServiceDataLakeStorageGen2ArrayOutput {
return o
}
func (o LinkedServiceDataLakeStorageGen2ArrayOutput) ToLinkedServiceDataLakeStorageGen2ArrayOutputWithContext(ctx context.Context) LinkedServiceDataLakeStorageGen2ArrayOutput {
return o
}
func (o LinkedServiceDataLakeStorageGen2ArrayOutput) Index(i pulumi.IntInput) LinkedServiceDataLakeStorageGen2Output {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) LinkedServiceDataLakeStorageGen2 {
return vs[0].([]LinkedServiceDataLakeStorageGen2)[vs[1].(int)]
}).(LinkedServiceDataLakeStorageGen2Output)
}
type LinkedServiceDataLakeStorageGen2MapOutput struct{ *pulumi.OutputState }
func (LinkedServiceDataLakeStorageGen2MapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]LinkedServiceDataLakeStorageGen2)(nil))
}
func (o LinkedServiceDataLakeStorageGen2MapOutput) ToLinkedServiceDataLakeStorageGen2MapOutput() LinkedServiceDataLakeStorageGen2MapOutput {
return o
}
func (o LinkedServiceDataLakeStorageGen2MapOutput) ToLinkedServiceDataLakeStorageGen2MapOutputWithContext(ctx context.Context) LinkedServiceDataLakeStorageGen2MapOutput {
return o
}
func (o LinkedServiceDataLakeStorageGen2MapOutput) MapIndex(k pulumi.StringInput) LinkedServiceDataLakeStorageGen2Output {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) LinkedServiceDataLakeStorageGen2 {
return vs[0].(map[string]LinkedServiceDataLakeStorageGen2)[vs[1].(string)]
}).(LinkedServiceDataLakeStorageGen2Output)
}
func init() {
pulumi.RegisterOutputType(LinkedServiceDataLakeStorageGen2Output{})
pulumi.RegisterOutputType(LinkedServiceDataLakeStorageGen2PtrOutput{})
pulumi.RegisterOutputType(LinkedServiceDataLakeStorageGen2ArrayOutput{})
pulumi.RegisterOutputType(LinkedServiceDataLakeStorageGen2MapOutput{})
}