/
linkedServiceSftp.go
504 lines (444 loc) · 23.5 KB
/
linkedServiceSftp.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
// 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 a Linked Service (connection) between a SFTP Server and 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
// }
// _, err = datafactory.NewLinkedServiceSftp(ctx, "example", &datafactory.LinkedServiceSftpArgs{
// Name: pulumi.String("example"),
// DataFactoryId: exampleFactory.ID(),
// AuthenticationType: pulumi.String("Basic"),
// Host: pulumi.String("http://www.bing.com"),
// Port: pulumi.Int(22),
// Username: pulumi.String("foo"),
// Password: pulumi.String("bar"),
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
//
// ## Import
//
// Data Factory Linked Service's can be imported using the `resource id`, e.g.
//
// ```sh
// $ pulumi import azure:datafactory/linkedServiceSftp:LinkedServiceSftp example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/linkedservices/example
// ```
type LinkedServiceSftp struct {
pulumi.CustomResourceState
// A map of additional properties to associate with the Data Factory Linked Service.
//
// The following supported arguments are specific to SFTP 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 type of authentication used to connect to the web table source. Valid options are `Anonymous`, `Basic` and `ClientCertificate`.
AuthenticationType pulumi.StringOutput `pulumi:"authenticationType"`
// 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 Linked Service.
Description pulumi.StringPtrOutput `pulumi:"description"`
// The SFTP server hostname.
Host pulumi.StringOutput `pulumi:"host"`
// The host key fingerprint of the SFTP server.
HostKeyFingerprint pulumi.StringPtrOutput `pulumi:"hostKeyFingerprint"`
// 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/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"`
// Password to logon to the SFTP Server for Basic Authentication.
Password pulumi.StringOutput `pulumi:"password"`
// The TCP port number that the SFTP server uses to listen for client connection. Default value is 22.
Port pulumi.IntOutput `pulumi:"port"`
// Whether to validate host key fingerprint while connecting. If set to `false`, `hostKeyFingerprint` must also be set.
SkipHostKeyValidation pulumi.BoolPtrOutput `pulumi:"skipHostKeyValidation"`
// The username used to log on to the SFTP server.
Username pulumi.StringOutput `pulumi:"username"`
}
// NewLinkedServiceSftp registers a new resource with the given unique name, arguments, and options.
func NewLinkedServiceSftp(ctx *pulumi.Context,
name string, args *LinkedServiceSftpArgs, opts ...pulumi.ResourceOption) (*LinkedServiceSftp, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.AuthenticationType == nil {
return nil, errors.New("invalid value for required argument 'AuthenticationType'")
}
if args.DataFactoryId == nil {
return nil, errors.New("invalid value for required argument 'DataFactoryId'")
}
if args.Host == nil {
return nil, errors.New("invalid value for required argument 'Host'")
}
if args.Password == nil {
return nil, errors.New("invalid value for required argument 'Password'")
}
if args.Port == nil {
return nil, errors.New("invalid value for required argument 'Port'")
}
if args.Username == nil {
return nil, errors.New("invalid value for required argument 'Username'")
}
if args.Password != nil {
args.Password = pulumi.ToSecret(args.Password).(pulumi.StringInput)
}
secrets := pulumi.AdditionalSecretOutputs([]string{
"password",
})
opts = append(opts, secrets)
opts = internal.PkgResourceDefaultOpts(opts)
var resource LinkedServiceSftp
err := ctx.RegisterResource("azure:datafactory/linkedServiceSftp:LinkedServiceSftp", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetLinkedServiceSftp gets an existing LinkedServiceSftp 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 GetLinkedServiceSftp(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *LinkedServiceSftpState, opts ...pulumi.ResourceOption) (*LinkedServiceSftp, error) {
var resource LinkedServiceSftp
err := ctx.ReadResource("azure:datafactory/linkedServiceSftp:LinkedServiceSftp", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering LinkedServiceSftp resources.
type linkedServiceSftpState struct {
// A map of additional properties to associate with the Data Factory Linked Service.
//
// The following supported arguments are specific to SFTP 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 type of authentication used to connect to the web table source. Valid options are `Anonymous`, `Basic` and `ClientCertificate`.
AuthenticationType *string `pulumi:"authenticationType"`
// 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 Linked Service.
Description *string `pulumi:"description"`
// The SFTP server hostname.
Host *string `pulumi:"host"`
// The host key fingerprint of the SFTP server.
HostKeyFingerprint *string `pulumi:"hostKeyFingerprint"`
// 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/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"`
// Password to logon to the SFTP Server for Basic Authentication.
Password *string `pulumi:"password"`
// The TCP port number that the SFTP server uses to listen for client connection. Default value is 22.
Port *int `pulumi:"port"`
// Whether to validate host key fingerprint while connecting. If set to `false`, `hostKeyFingerprint` must also be set.
SkipHostKeyValidation *bool `pulumi:"skipHostKeyValidation"`
// The username used to log on to the SFTP server.
Username *string `pulumi:"username"`
}
type LinkedServiceSftpState struct {
// A map of additional properties to associate with the Data Factory Linked Service.
//
// The following supported arguments are specific to SFTP Linked Service:
AdditionalProperties pulumi.StringMapInput
// List of tags that can be used for describing the Data Factory Linked Service.
Annotations pulumi.StringArrayInput
// The type of authentication used to connect to the web table source. Valid options are `Anonymous`, `Basic` and `ClientCertificate`.
AuthenticationType 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 Linked Service.
Description pulumi.StringPtrInput
// The SFTP server hostname.
Host pulumi.StringPtrInput
// The host key fingerprint of the SFTP server.
HostKeyFingerprint 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/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
// Password to logon to the SFTP Server for Basic Authentication.
Password pulumi.StringPtrInput
// The TCP port number that the SFTP server uses to listen for client connection. Default value is 22.
Port pulumi.IntPtrInput
// Whether to validate host key fingerprint while connecting. If set to `false`, `hostKeyFingerprint` must also be set.
SkipHostKeyValidation pulumi.BoolPtrInput
// The username used to log on to the SFTP server.
Username pulumi.StringPtrInput
}
func (LinkedServiceSftpState) ElementType() reflect.Type {
return reflect.TypeOf((*linkedServiceSftpState)(nil)).Elem()
}
type linkedServiceSftpArgs struct {
// A map of additional properties to associate with the Data Factory Linked Service.
//
// The following supported arguments are specific to SFTP 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 type of authentication used to connect to the web table source. Valid options are `Anonymous`, `Basic` and `ClientCertificate`.
AuthenticationType string `pulumi:"authenticationType"`
// 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 Linked Service.
Description *string `pulumi:"description"`
// The SFTP server hostname.
Host string `pulumi:"host"`
// The host key fingerprint of the SFTP server.
HostKeyFingerprint *string `pulumi:"hostKeyFingerprint"`
// 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/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"`
// Password to logon to the SFTP Server for Basic Authentication.
Password string `pulumi:"password"`
// The TCP port number that the SFTP server uses to listen for client connection. Default value is 22.
Port int `pulumi:"port"`
// Whether to validate host key fingerprint while connecting. If set to `false`, `hostKeyFingerprint` must also be set.
SkipHostKeyValidation *bool `pulumi:"skipHostKeyValidation"`
// The username used to log on to the SFTP server.
Username string `pulumi:"username"`
}
// The set of arguments for constructing a LinkedServiceSftp resource.
type LinkedServiceSftpArgs struct {
// A map of additional properties to associate with the Data Factory Linked Service.
//
// The following supported arguments are specific to SFTP Linked Service:
AdditionalProperties pulumi.StringMapInput
// List of tags that can be used for describing the Data Factory Linked Service.
Annotations pulumi.StringArrayInput
// The type of authentication used to connect to the web table source. Valid options are `Anonymous`, `Basic` and `ClientCertificate`.
AuthenticationType pulumi.StringInput
// 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 Linked Service.
Description pulumi.StringPtrInput
// The SFTP server hostname.
Host pulumi.StringInput
// The host key fingerprint of the SFTP server.
HostKeyFingerprint 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/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
// Password to logon to the SFTP Server for Basic Authentication.
Password pulumi.StringInput
// The TCP port number that the SFTP server uses to listen for client connection. Default value is 22.
Port pulumi.IntInput
// Whether to validate host key fingerprint while connecting. If set to `false`, `hostKeyFingerprint` must also be set.
SkipHostKeyValidation pulumi.BoolPtrInput
// The username used to log on to the SFTP server.
Username pulumi.StringInput
}
func (LinkedServiceSftpArgs) ElementType() reflect.Type {
return reflect.TypeOf((*linkedServiceSftpArgs)(nil)).Elem()
}
type LinkedServiceSftpInput interface {
pulumi.Input
ToLinkedServiceSftpOutput() LinkedServiceSftpOutput
ToLinkedServiceSftpOutputWithContext(ctx context.Context) LinkedServiceSftpOutput
}
func (*LinkedServiceSftp) ElementType() reflect.Type {
return reflect.TypeOf((**LinkedServiceSftp)(nil)).Elem()
}
func (i *LinkedServiceSftp) ToLinkedServiceSftpOutput() LinkedServiceSftpOutput {
return i.ToLinkedServiceSftpOutputWithContext(context.Background())
}
func (i *LinkedServiceSftp) ToLinkedServiceSftpOutputWithContext(ctx context.Context) LinkedServiceSftpOutput {
return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceSftpOutput)
}
// LinkedServiceSftpArrayInput is an input type that accepts LinkedServiceSftpArray and LinkedServiceSftpArrayOutput values.
// You can construct a concrete instance of `LinkedServiceSftpArrayInput` via:
//
// LinkedServiceSftpArray{ LinkedServiceSftpArgs{...} }
type LinkedServiceSftpArrayInput interface {
pulumi.Input
ToLinkedServiceSftpArrayOutput() LinkedServiceSftpArrayOutput
ToLinkedServiceSftpArrayOutputWithContext(context.Context) LinkedServiceSftpArrayOutput
}
type LinkedServiceSftpArray []LinkedServiceSftpInput
func (LinkedServiceSftpArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*LinkedServiceSftp)(nil)).Elem()
}
func (i LinkedServiceSftpArray) ToLinkedServiceSftpArrayOutput() LinkedServiceSftpArrayOutput {
return i.ToLinkedServiceSftpArrayOutputWithContext(context.Background())
}
func (i LinkedServiceSftpArray) ToLinkedServiceSftpArrayOutputWithContext(ctx context.Context) LinkedServiceSftpArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceSftpArrayOutput)
}
// LinkedServiceSftpMapInput is an input type that accepts LinkedServiceSftpMap and LinkedServiceSftpMapOutput values.
// You can construct a concrete instance of `LinkedServiceSftpMapInput` via:
//
// LinkedServiceSftpMap{ "key": LinkedServiceSftpArgs{...} }
type LinkedServiceSftpMapInput interface {
pulumi.Input
ToLinkedServiceSftpMapOutput() LinkedServiceSftpMapOutput
ToLinkedServiceSftpMapOutputWithContext(context.Context) LinkedServiceSftpMapOutput
}
type LinkedServiceSftpMap map[string]LinkedServiceSftpInput
func (LinkedServiceSftpMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*LinkedServiceSftp)(nil)).Elem()
}
func (i LinkedServiceSftpMap) ToLinkedServiceSftpMapOutput() LinkedServiceSftpMapOutput {
return i.ToLinkedServiceSftpMapOutputWithContext(context.Background())
}
func (i LinkedServiceSftpMap) ToLinkedServiceSftpMapOutputWithContext(ctx context.Context) LinkedServiceSftpMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(LinkedServiceSftpMapOutput)
}
type LinkedServiceSftpOutput struct{ *pulumi.OutputState }
func (LinkedServiceSftpOutput) ElementType() reflect.Type {
return reflect.TypeOf((**LinkedServiceSftp)(nil)).Elem()
}
func (o LinkedServiceSftpOutput) ToLinkedServiceSftpOutput() LinkedServiceSftpOutput {
return o
}
func (o LinkedServiceSftpOutput) ToLinkedServiceSftpOutputWithContext(ctx context.Context) LinkedServiceSftpOutput {
return o
}
// A map of additional properties to associate with the Data Factory Linked Service.
//
// The following supported arguments are specific to SFTP Linked Service:
func (o LinkedServiceSftpOutput) AdditionalProperties() pulumi.StringMapOutput {
return o.ApplyT(func(v *LinkedServiceSftp) pulumi.StringMapOutput { return v.AdditionalProperties }).(pulumi.StringMapOutput)
}
// List of tags that can be used for describing the Data Factory Linked Service.
func (o LinkedServiceSftpOutput) Annotations() pulumi.StringArrayOutput {
return o.ApplyT(func(v *LinkedServiceSftp) pulumi.StringArrayOutput { return v.Annotations }).(pulumi.StringArrayOutput)
}
// The type of authentication used to connect to the web table source. Valid options are `Anonymous`, `Basic` and `ClientCertificate`.
func (o LinkedServiceSftpOutput) AuthenticationType() pulumi.StringOutput {
return o.ApplyT(func(v *LinkedServiceSftp) pulumi.StringOutput { return v.AuthenticationType }).(pulumi.StringOutput)
}
// The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource.
func (o LinkedServiceSftpOutput) DataFactoryId() pulumi.StringOutput {
return o.ApplyT(func(v *LinkedServiceSftp) pulumi.StringOutput { return v.DataFactoryId }).(pulumi.StringOutput)
}
// The description for the Data Factory Linked Service.
func (o LinkedServiceSftpOutput) Description() pulumi.StringPtrOutput {
return o.ApplyT(func(v *LinkedServiceSftp) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput)
}
// The SFTP server hostname.
func (o LinkedServiceSftpOutput) Host() pulumi.StringOutput {
return o.ApplyT(func(v *LinkedServiceSftp) pulumi.StringOutput { return v.Host }).(pulumi.StringOutput)
}
// The host key fingerprint of the SFTP server.
func (o LinkedServiceSftpOutput) HostKeyFingerprint() pulumi.StringPtrOutput {
return o.ApplyT(func(v *LinkedServiceSftp) pulumi.StringPtrOutput { return v.HostKeyFingerprint }).(pulumi.StringPtrOutput)
}
// The integration runtime reference to associate with the Data Factory Linked Service.
func (o LinkedServiceSftpOutput) IntegrationRuntimeName() pulumi.StringPtrOutput {
return o.ApplyT(func(v *LinkedServiceSftp) pulumi.StringPtrOutput { return v.IntegrationRuntimeName }).(pulumi.StringPtrOutput)
}
// 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/azure/data-factory/naming-rules) for all restrictions.
func (o LinkedServiceSftpOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v *LinkedServiceSftp) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
}
// A map of parameters to associate with the Data Factory Linked Service.
func (o LinkedServiceSftpOutput) Parameters() pulumi.StringMapOutput {
return o.ApplyT(func(v *LinkedServiceSftp) pulumi.StringMapOutput { return v.Parameters }).(pulumi.StringMapOutput)
}
// Password to logon to the SFTP Server for Basic Authentication.
func (o LinkedServiceSftpOutput) Password() pulumi.StringOutput {
return o.ApplyT(func(v *LinkedServiceSftp) pulumi.StringOutput { return v.Password }).(pulumi.StringOutput)
}
// The TCP port number that the SFTP server uses to listen for client connection. Default value is 22.
func (o LinkedServiceSftpOutput) Port() pulumi.IntOutput {
return o.ApplyT(func(v *LinkedServiceSftp) pulumi.IntOutput { return v.Port }).(pulumi.IntOutput)
}
// Whether to validate host key fingerprint while connecting. If set to `false`, `hostKeyFingerprint` must also be set.
func (o LinkedServiceSftpOutput) SkipHostKeyValidation() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *LinkedServiceSftp) pulumi.BoolPtrOutput { return v.SkipHostKeyValidation }).(pulumi.BoolPtrOutput)
}
// The username used to log on to the SFTP server.
func (o LinkedServiceSftpOutput) Username() pulumi.StringOutput {
return o.ApplyT(func(v *LinkedServiceSftp) pulumi.StringOutput { return v.Username }).(pulumi.StringOutput)
}
type LinkedServiceSftpArrayOutput struct{ *pulumi.OutputState }
func (LinkedServiceSftpArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*LinkedServiceSftp)(nil)).Elem()
}
func (o LinkedServiceSftpArrayOutput) ToLinkedServiceSftpArrayOutput() LinkedServiceSftpArrayOutput {
return o
}
func (o LinkedServiceSftpArrayOutput) ToLinkedServiceSftpArrayOutputWithContext(ctx context.Context) LinkedServiceSftpArrayOutput {
return o
}
func (o LinkedServiceSftpArrayOutput) Index(i pulumi.IntInput) LinkedServiceSftpOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *LinkedServiceSftp {
return vs[0].([]*LinkedServiceSftp)[vs[1].(int)]
}).(LinkedServiceSftpOutput)
}
type LinkedServiceSftpMapOutput struct{ *pulumi.OutputState }
func (LinkedServiceSftpMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*LinkedServiceSftp)(nil)).Elem()
}
func (o LinkedServiceSftpMapOutput) ToLinkedServiceSftpMapOutput() LinkedServiceSftpMapOutput {
return o
}
func (o LinkedServiceSftpMapOutput) ToLinkedServiceSftpMapOutputWithContext(ctx context.Context) LinkedServiceSftpMapOutput {
return o
}
func (o LinkedServiceSftpMapOutput) MapIndex(k pulumi.StringInput) LinkedServiceSftpOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *LinkedServiceSftp {
return vs[0].(map[string]*LinkedServiceSftp)[vs[1].(string)]
}).(LinkedServiceSftpOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*LinkedServiceSftpInput)(nil)).Elem(), &LinkedServiceSftp{})
pulumi.RegisterInputType(reflect.TypeOf((*LinkedServiceSftpArrayInput)(nil)).Elem(), LinkedServiceSftpArray{})
pulumi.RegisterInputType(reflect.TypeOf((*LinkedServiceSftpMapInput)(nil)).Elem(), LinkedServiceSftpMap{})
pulumi.RegisterOutputType(LinkedServiceSftpOutput{})
pulumi.RegisterOutputType(LinkedServiceSftpArrayOutput{})
pulumi.RegisterOutputType(LinkedServiceSftpMapOutput{})
}