generated from pulumi/pulumi-tf-provider-boilerplate
/
privateEndpointOutboundConnection.go
242 lines (192 loc) · 11.2 KB
/
privateEndpointOutboundConnection.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
// 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 integration
import (
"context"
"reflect"
"errors"
"github.com/pulumi/pulumi-oci/sdk/go/oci/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
type PrivateEndpointOutboundConnection struct {
pulumi.CustomResourceState
IntegrationInstanceId pulumi.StringOutput `pulumi:"integrationInstanceId"`
NsgIds pulumi.StringArrayOutput `pulumi:"nsgIds"`
State pulumi.StringOutput `pulumi:"state"`
SubnetId pulumi.StringOutput `pulumi:"subnetId"`
}
// NewPrivateEndpointOutboundConnection registers a new resource with the given unique name, arguments, and options.
func NewPrivateEndpointOutboundConnection(ctx *pulumi.Context,
name string, args *PrivateEndpointOutboundConnectionArgs, opts ...pulumi.ResourceOption) (*PrivateEndpointOutboundConnection, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.IntegrationInstanceId == nil {
return nil, errors.New("invalid value for required argument 'IntegrationInstanceId'")
}
if args.SubnetId == nil {
return nil, errors.New("invalid value for required argument 'SubnetId'")
}
opts = internal.PkgResourceDefaultOpts(opts)
var resource PrivateEndpointOutboundConnection
err := ctx.RegisterResource("oci:Integration/privateEndpointOutboundConnection:PrivateEndpointOutboundConnection", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetPrivateEndpointOutboundConnection gets an existing PrivateEndpointOutboundConnection 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 GetPrivateEndpointOutboundConnection(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *PrivateEndpointOutboundConnectionState, opts ...pulumi.ResourceOption) (*PrivateEndpointOutboundConnection, error) {
var resource PrivateEndpointOutboundConnection
err := ctx.ReadResource("oci:Integration/privateEndpointOutboundConnection:PrivateEndpointOutboundConnection", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering PrivateEndpointOutboundConnection resources.
type privateEndpointOutboundConnectionState struct {
IntegrationInstanceId *string `pulumi:"integrationInstanceId"`
NsgIds []string `pulumi:"nsgIds"`
State *string `pulumi:"state"`
SubnetId *string `pulumi:"subnetId"`
}
type PrivateEndpointOutboundConnectionState struct {
IntegrationInstanceId pulumi.StringPtrInput
NsgIds pulumi.StringArrayInput
State pulumi.StringPtrInput
SubnetId pulumi.StringPtrInput
}
func (PrivateEndpointOutboundConnectionState) ElementType() reflect.Type {
return reflect.TypeOf((*privateEndpointOutboundConnectionState)(nil)).Elem()
}
type privateEndpointOutboundConnectionArgs struct {
IntegrationInstanceId string `pulumi:"integrationInstanceId"`
NsgIds []string `pulumi:"nsgIds"`
State *string `pulumi:"state"`
SubnetId string `pulumi:"subnetId"`
}
// The set of arguments for constructing a PrivateEndpointOutboundConnection resource.
type PrivateEndpointOutboundConnectionArgs struct {
IntegrationInstanceId pulumi.StringInput
NsgIds pulumi.StringArrayInput
State pulumi.StringPtrInput
SubnetId pulumi.StringInput
}
func (PrivateEndpointOutboundConnectionArgs) ElementType() reflect.Type {
return reflect.TypeOf((*privateEndpointOutboundConnectionArgs)(nil)).Elem()
}
type PrivateEndpointOutboundConnectionInput interface {
pulumi.Input
ToPrivateEndpointOutboundConnectionOutput() PrivateEndpointOutboundConnectionOutput
ToPrivateEndpointOutboundConnectionOutputWithContext(ctx context.Context) PrivateEndpointOutboundConnectionOutput
}
func (*PrivateEndpointOutboundConnection) ElementType() reflect.Type {
return reflect.TypeOf((**PrivateEndpointOutboundConnection)(nil)).Elem()
}
func (i *PrivateEndpointOutboundConnection) ToPrivateEndpointOutboundConnectionOutput() PrivateEndpointOutboundConnectionOutput {
return i.ToPrivateEndpointOutboundConnectionOutputWithContext(context.Background())
}
func (i *PrivateEndpointOutboundConnection) ToPrivateEndpointOutboundConnectionOutputWithContext(ctx context.Context) PrivateEndpointOutboundConnectionOutput {
return pulumi.ToOutputWithContext(ctx, i).(PrivateEndpointOutboundConnectionOutput)
}
// PrivateEndpointOutboundConnectionArrayInput is an input type that accepts PrivateEndpointOutboundConnectionArray and PrivateEndpointOutboundConnectionArrayOutput values.
// You can construct a concrete instance of `PrivateEndpointOutboundConnectionArrayInput` via:
//
// PrivateEndpointOutboundConnectionArray{ PrivateEndpointOutboundConnectionArgs{...} }
type PrivateEndpointOutboundConnectionArrayInput interface {
pulumi.Input
ToPrivateEndpointOutboundConnectionArrayOutput() PrivateEndpointOutboundConnectionArrayOutput
ToPrivateEndpointOutboundConnectionArrayOutputWithContext(context.Context) PrivateEndpointOutboundConnectionArrayOutput
}
type PrivateEndpointOutboundConnectionArray []PrivateEndpointOutboundConnectionInput
func (PrivateEndpointOutboundConnectionArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*PrivateEndpointOutboundConnection)(nil)).Elem()
}
func (i PrivateEndpointOutboundConnectionArray) ToPrivateEndpointOutboundConnectionArrayOutput() PrivateEndpointOutboundConnectionArrayOutput {
return i.ToPrivateEndpointOutboundConnectionArrayOutputWithContext(context.Background())
}
func (i PrivateEndpointOutboundConnectionArray) ToPrivateEndpointOutboundConnectionArrayOutputWithContext(ctx context.Context) PrivateEndpointOutboundConnectionArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(PrivateEndpointOutboundConnectionArrayOutput)
}
// PrivateEndpointOutboundConnectionMapInput is an input type that accepts PrivateEndpointOutboundConnectionMap and PrivateEndpointOutboundConnectionMapOutput values.
// You can construct a concrete instance of `PrivateEndpointOutboundConnectionMapInput` via:
//
// PrivateEndpointOutboundConnectionMap{ "key": PrivateEndpointOutboundConnectionArgs{...} }
type PrivateEndpointOutboundConnectionMapInput interface {
pulumi.Input
ToPrivateEndpointOutboundConnectionMapOutput() PrivateEndpointOutboundConnectionMapOutput
ToPrivateEndpointOutboundConnectionMapOutputWithContext(context.Context) PrivateEndpointOutboundConnectionMapOutput
}
type PrivateEndpointOutboundConnectionMap map[string]PrivateEndpointOutboundConnectionInput
func (PrivateEndpointOutboundConnectionMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*PrivateEndpointOutboundConnection)(nil)).Elem()
}
func (i PrivateEndpointOutboundConnectionMap) ToPrivateEndpointOutboundConnectionMapOutput() PrivateEndpointOutboundConnectionMapOutput {
return i.ToPrivateEndpointOutboundConnectionMapOutputWithContext(context.Background())
}
func (i PrivateEndpointOutboundConnectionMap) ToPrivateEndpointOutboundConnectionMapOutputWithContext(ctx context.Context) PrivateEndpointOutboundConnectionMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(PrivateEndpointOutboundConnectionMapOutput)
}
type PrivateEndpointOutboundConnectionOutput struct{ *pulumi.OutputState }
func (PrivateEndpointOutboundConnectionOutput) ElementType() reflect.Type {
return reflect.TypeOf((**PrivateEndpointOutboundConnection)(nil)).Elem()
}
func (o PrivateEndpointOutboundConnectionOutput) ToPrivateEndpointOutboundConnectionOutput() PrivateEndpointOutboundConnectionOutput {
return o
}
func (o PrivateEndpointOutboundConnectionOutput) ToPrivateEndpointOutboundConnectionOutputWithContext(ctx context.Context) PrivateEndpointOutboundConnectionOutput {
return o
}
func (o PrivateEndpointOutboundConnectionOutput) IntegrationInstanceId() pulumi.StringOutput {
return o.ApplyT(func(v *PrivateEndpointOutboundConnection) pulumi.StringOutput { return v.IntegrationInstanceId }).(pulumi.StringOutput)
}
func (o PrivateEndpointOutboundConnectionOutput) NsgIds() pulumi.StringArrayOutput {
return o.ApplyT(func(v *PrivateEndpointOutboundConnection) pulumi.StringArrayOutput { return v.NsgIds }).(pulumi.StringArrayOutput)
}
func (o PrivateEndpointOutboundConnectionOutput) State() pulumi.StringOutput {
return o.ApplyT(func(v *PrivateEndpointOutboundConnection) pulumi.StringOutput { return v.State }).(pulumi.StringOutput)
}
func (o PrivateEndpointOutboundConnectionOutput) SubnetId() pulumi.StringOutput {
return o.ApplyT(func(v *PrivateEndpointOutboundConnection) pulumi.StringOutput { return v.SubnetId }).(pulumi.StringOutput)
}
type PrivateEndpointOutboundConnectionArrayOutput struct{ *pulumi.OutputState }
func (PrivateEndpointOutboundConnectionArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*PrivateEndpointOutboundConnection)(nil)).Elem()
}
func (o PrivateEndpointOutboundConnectionArrayOutput) ToPrivateEndpointOutboundConnectionArrayOutput() PrivateEndpointOutboundConnectionArrayOutput {
return o
}
func (o PrivateEndpointOutboundConnectionArrayOutput) ToPrivateEndpointOutboundConnectionArrayOutputWithContext(ctx context.Context) PrivateEndpointOutboundConnectionArrayOutput {
return o
}
func (o PrivateEndpointOutboundConnectionArrayOutput) Index(i pulumi.IntInput) PrivateEndpointOutboundConnectionOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *PrivateEndpointOutboundConnection {
return vs[0].([]*PrivateEndpointOutboundConnection)[vs[1].(int)]
}).(PrivateEndpointOutboundConnectionOutput)
}
type PrivateEndpointOutboundConnectionMapOutput struct{ *pulumi.OutputState }
func (PrivateEndpointOutboundConnectionMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*PrivateEndpointOutboundConnection)(nil)).Elem()
}
func (o PrivateEndpointOutboundConnectionMapOutput) ToPrivateEndpointOutboundConnectionMapOutput() PrivateEndpointOutboundConnectionMapOutput {
return o
}
func (o PrivateEndpointOutboundConnectionMapOutput) ToPrivateEndpointOutboundConnectionMapOutputWithContext(ctx context.Context) PrivateEndpointOutboundConnectionMapOutput {
return o
}
func (o PrivateEndpointOutboundConnectionMapOutput) MapIndex(k pulumi.StringInput) PrivateEndpointOutboundConnectionOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *PrivateEndpointOutboundConnection {
return vs[0].(map[string]*PrivateEndpointOutboundConnection)[vs[1].(string)]
}).(PrivateEndpointOutboundConnectionOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*PrivateEndpointOutboundConnectionInput)(nil)).Elem(), &PrivateEndpointOutboundConnection{})
pulumi.RegisterInputType(reflect.TypeOf((*PrivateEndpointOutboundConnectionArrayInput)(nil)).Elem(), PrivateEndpointOutboundConnectionArray{})
pulumi.RegisterInputType(reflect.TypeOf((*PrivateEndpointOutboundConnectionMapInput)(nil)).Elem(), PrivateEndpointOutboundConnectionMap{})
pulumi.RegisterOutputType(PrivateEndpointOutboundConnectionOutput{})
pulumi.RegisterOutputType(PrivateEndpointOutboundConnectionArrayOutput{})
pulumi.RegisterOutputType(PrivateEndpointOutboundConnectionMapOutput{})
}