generated from pulumi/pulumi-tf-provider-boilerplate
/
destinationSnowflake.go
251 lines (200 loc) · 10 KB
/
destinationSnowflake.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
// 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 airbyte
import (
"context"
"reflect"
"errors"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/ryan-pip/pulumi-airbyte/sdk/go/airbyte/internal"
)
// DestinationSnowflake Resource
type DestinationSnowflake struct {
pulumi.CustomResourceState
Configuration DestinationSnowflakeConfigurationOutput `pulumi:"configuration"`
DestinationId pulumi.StringOutput `pulumi:"destinationId"`
DestinationType pulumi.StringOutput `pulumi:"destinationType"`
Name pulumi.StringOutput `pulumi:"name"`
WorkspaceId pulumi.StringOutput `pulumi:"workspaceId"`
}
// NewDestinationSnowflake registers a new resource with the given unique name, arguments, and options.
func NewDestinationSnowflake(ctx *pulumi.Context,
name string, args *DestinationSnowflakeArgs, opts ...pulumi.ResourceOption) (*DestinationSnowflake, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.Configuration == nil {
return nil, errors.New("invalid value for required argument 'Configuration'")
}
if args.Name == nil {
return nil, errors.New("invalid value for required argument 'Name'")
}
if args.WorkspaceId == nil {
return nil, errors.New("invalid value for required argument 'WorkspaceId'")
}
opts = internal.PkgResourceDefaultOpts(opts)
var resource DestinationSnowflake
err := ctx.RegisterResource("airbyte:index/destinationSnowflake:DestinationSnowflake", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetDestinationSnowflake gets an existing DestinationSnowflake 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 GetDestinationSnowflake(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *DestinationSnowflakeState, opts ...pulumi.ResourceOption) (*DestinationSnowflake, error) {
var resource DestinationSnowflake
err := ctx.ReadResource("airbyte:index/destinationSnowflake:DestinationSnowflake", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering DestinationSnowflake resources.
type destinationSnowflakeState struct {
Configuration *DestinationSnowflakeConfiguration `pulumi:"configuration"`
DestinationId *string `pulumi:"destinationId"`
DestinationType *string `pulumi:"destinationType"`
Name *string `pulumi:"name"`
WorkspaceId *string `pulumi:"workspaceId"`
}
type DestinationSnowflakeState struct {
Configuration DestinationSnowflakeConfigurationPtrInput
DestinationId pulumi.StringPtrInput
DestinationType pulumi.StringPtrInput
Name pulumi.StringPtrInput
WorkspaceId pulumi.StringPtrInput
}
func (DestinationSnowflakeState) ElementType() reflect.Type {
return reflect.TypeOf((*destinationSnowflakeState)(nil)).Elem()
}
type destinationSnowflakeArgs struct {
Configuration DestinationSnowflakeConfiguration `pulumi:"configuration"`
Name string `pulumi:"name"`
WorkspaceId string `pulumi:"workspaceId"`
}
// The set of arguments for constructing a DestinationSnowflake resource.
type DestinationSnowflakeArgs struct {
Configuration DestinationSnowflakeConfigurationInput
Name pulumi.StringInput
WorkspaceId pulumi.StringInput
}
func (DestinationSnowflakeArgs) ElementType() reflect.Type {
return reflect.TypeOf((*destinationSnowflakeArgs)(nil)).Elem()
}
type DestinationSnowflakeInput interface {
pulumi.Input
ToDestinationSnowflakeOutput() DestinationSnowflakeOutput
ToDestinationSnowflakeOutputWithContext(ctx context.Context) DestinationSnowflakeOutput
}
func (*DestinationSnowflake) ElementType() reflect.Type {
return reflect.TypeOf((**DestinationSnowflake)(nil)).Elem()
}
func (i *DestinationSnowflake) ToDestinationSnowflakeOutput() DestinationSnowflakeOutput {
return i.ToDestinationSnowflakeOutputWithContext(context.Background())
}
func (i *DestinationSnowflake) ToDestinationSnowflakeOutputWithContext(ctx context.Context) DestinationSnowflakeOutput {
return pulumi.ToOutputWithContext(ctx, i).(DestinationSnowflakeOutput)
}
// DestinationSnowflakeArrayInput is an input type that accepts DestinationSnowflakeArray and DestinationSnowflakeArrayOutput values.
// You can construct a concrete instance of `DestinationSnowflakeArrayInput` via:
//
// DestinationSnowflakeArray{ DestinationSnowflakeArgs{...} }
type DestinationSnowflakeArrayInput interface {
pulumi.Input
ToDestinationSnowflakeArrayOutput() DestinationSnowflakeArrayOutput
ToDestinationSnowflakeArrayOutputWithContext(context.Context) DestinationSnowflakeArrayOutput
}
type DestinationSnowflakeArray []DestinationSnowflakeInput
func (DestinationSnowflakeArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*DestinationSnowflake)(nil)).Elem()
}
func (i DestinationSnowflakeArray) ToDestinationSnowflakeArrayOutput() DestinationSnowflakeArrayOutput {
return i.ToDestinationSnowflakeArrayOutputWithContext(context.Background())
}
func (i DestinationSnowflakeArray) ToDestinationSnowflakeArrayOutputWithContext(ctx context.Context) DestinationSnowflakeArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(DestinationSnowflakeArrayOutput)
}
// DestinationSnowflakeMapInput is an input type that accepts DestinationSnowflakeMap and DestinationSnowflakeMapOutput values.
// You can construct a concrete instance of `DestinationSnowflakeMapInput` via:
//
// DestinationSnowflakeMap{ "key": DestinationSnowflakeArgs{...} }
type DestinationSnowflakeMapInput interface {
pulumi.Input
ToDestinationSnowflakeMapOutput() DestinationSnowflakeMapOutput
ToDestinationSnowflakeMapOutputWithContext(context.Context) DestinationSnowflakeMapOutput
}
type DestinationSnowflakeMap map[string]DestinationSnowflakeInput
func (DestinationSnowflakeMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*DestinationSnowflake)(nil)).Elem()
}
func (i DestinationSnowflakeMap) ToDestinationSnowflakeMapOutput() DestinationSnowflakeMapOutput {
return i.ToDestinationSnowflakeMapOutputWithContext(context.Background())
}
func (i DestinationSnowflakeMap) ToDestinationSnowflakeMapOutputWithContext(ctx context.Context) DestinationSnowflakeMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(DestinationSnowflakeMapOutput)
}
type DestinationSnowflakeOutput struct{ *pulumi.OutputState }
func (DestinationSnowflakeOutput) ElementType() reflect.Type {
return reflect.TypeOf((**DestinationSnowflake)(nil)).Elem()
}
func (o DestinationSnowflakeOutput) ToDestinationSnowflakeOutput() DestinationSnowflakeOutput {
return o
}
func (o DestinationSnowflakeOutput) ToDestinationSnowflakeOutputWithContext(ctx context.Context) DestinationSnowflakeOutput {
return o
}
func (o DestinationSnowflakeOutput) Configuration() DestinationSnowflakeConfigurationOutput {
return o.ApplyT(func(v *DestinationSnowflake) DestinationSnowflakeConfigurationOutput { return v.Configuration }).(DestinationSnowflakeConfigurationOutput)
}
func (o DestinationSnowflakeOutput) DestinationId() pulumi.StringOutput {
return o.ApplyT(func(v *DestinationSnowflake) pulumi.StringOutput { return v.DestinationId }).(pulumi.StringOutput)
}
func (o DestinationSnowflakeOutput) DestinationType() pulumi.StringOutput {
return o.ApplyT(func(v *DestinationSnowflake) pulumi.StringOutput { return v.DestinationType }).(pulumi.StringOutput)
}
func (o DestinationSnowflakeOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v *DestinationSnowflake) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
}
func (o DestinationSnowflakeOutput) WorkspaceId() pulumi.StringOutput {
return o.ApplyT(func(v *DestinationSnowflake) pulumi.StringOutput { return v.WorkspaceId }).(pulumi.StringOutput)
}
type DestinationSnowflakeArrayOutput struct{ *pulumi.OutputState }
func (DestinationSnowflakeArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*DestinationSnowflake)(nil)).Elem()
}
func (o DestinationSnowflakeArrayOutput) ToDestinationSnowflakeArrayOutput() DestinationSnowflakeArrayOutput {
return o
}
func (o DestinationSnowflakeArrayOutput) ToDestinationSnowflakeArrayOutputWithContext(ctx context.Context) DestinationSnowflakeArrayOutput {
return o
}
func (o DestinationSnowflakeArrayOutput) Index(i pulumi.IntInput) DestinationSnowflakeOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *DestinationSnowflake {
return vs[0].([]*DestinationSnowflake)[vs[1].(int)]
}).(DestinationSnowflakeOutput)
}
type DestinationSnowflakeMapOutput struct{ *pulumi.OutputState }
func (DestinationSnowflakeMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*DestinationSnowflake)(nil)).Elem()
}
func (o DestinationSnowflakeMapOutput) ToDestinationSnowflakeMapOutput() DestinationSnowflakeMapOutput {
return o
}
func (o DestinationSnowflakeMapOutput) ToDestinationSnowflakeMapOutputWithContext(ctx context.Context) DestinationSnowflakeMapOutput {
return o
}
func (o DestinationSnowflakeMapOutput) MapIndex(k pulumi.StringInput) DestinationSnowflakeOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *DestinationSnowflake {
return vs[0].(map[string]*DestinationSnowflake)[vs[1].(string)]
}).(DestinationSnowflakeOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*DestinationSnowflakeInput)(nil)).Elem(), &DestinationSnowflake{})
pulumi.RegisterInputType(reflect.TypeOf((*DestinationSnowflakeArrayInput)(nil)).Elem(), DestinationSnowflakeArray{})
pulumi.RegisterInputType(reflect.TypeOf((*DestinationSnowflakeMapInput)(nil)).Elem(), DestinationSnowflakeMap{})
pulumi.RegisterOutputType(DestinationSnowflakeOutput{})
pulumi.RegisterOutputType(DestinationSnowflakeArrayOutput{})
pulumi.RegisterOutputType(DestinationSnowflakeMapOutput{})
}