generated from pulumi/pulumi-tf-provider-boilerplate
/
odaPrivateEndpointScanProxy.go
363 lines (311 loc) · 17.4 KB
/
odaPrivateEndpointScanProxy.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
// 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 oda
import (
"context"
"reflect"
"errors"
"github.com/pulumi/pulumi-oci/sdk/go/oci/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// This resource provides the Oda Private Endpoint Scan Proxy resource in Oracle Cloud Infrastructure Digital Assistant service.
//
// Starts an asynchronous job to create an ODA Private Endpoint Scan Proxy.
//
// To monitor the status of the job, take the `opc-work-request-id` response
// header value and use it to call `GET /workRequests/{workRequestID}`.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi-oci/sdk/go/oci/Oda"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// _, err := Oda.NewOdaPrivateEndpointScanProxy(ctx, "test_oda_private_endpoint_scan_proxy", &Oda.OdaPrivateEndpointScanProxyArgs{
// OdaPrivateEndpointId: pulumi.Any(testOdaPrivateEndpoint.Id),
// Protocol: pulumi.Any(odaPrivateEndpointScanProxyProtocol),
// ScanListenerInfos: oda.OdaPrivateEndpointScanProxyScanListenerInfoArray{
// &oda.OdaPrivateEndpointScanProxyScanListenerInfoArgs{
// ScanListenerFqdn: pulumi.Any(odaPrivateEndpointScanProxyScanListenerInfosScanListenerFqdn),
// ScanListenerIp: pulumi.Any(odaPrivateEndpointScanProxyScanListenerInfosScanListenerIp),
// ScanListenerPort: pulumi.Any(odaPrivateEndpointScanProxyScanListenerInfosScanListenerPort),
// },
// },
// ScanListenerType: pulumi.Any(odaPrivateEndpointScanProxyScanListenerType),
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
//
// ## Import
//
// OdaPrivateEndpointScanProxies can be imported using the `id`, e.g.
//
// ```sh
// $ pulumi import oci:Oda/odaPrivateEndpointScanProxy:OdaPrivateEndpointScanProxy test_oda_private_endpoint_scan_proxy "odaPrivateEndpoints/{odaPrivateEndpointId}/odaPrivateEndpointScanProxies/{odaPrivateEndpointScanProxyId}"
// ```
type OdaPrivateEndpointScanProxy struct {
pulumi.CustomResourceState
// Unique ODA Private Endpoint identifier which is the [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
OdaPrivateEndpointId pulumi.StringOutput `pulumi:"odaPrivateEndpointId"`
// The protocol used for communication between client, scanProxy and RAC's scan listeners
Protocol pulumi.StringOutput `pulumi:"protocol"`
// The FQDN/IPs and port information of customer's Real Application Cluster (RAC)'s SCAN listeners.
ScanListenerInfos OdaPrivateEndpointScanProxyScanListenerInfoArrayOutput `pulumi:"scanListenerInfos"`
// Type indicating whether Scan listener is specified by its FQDN or list of IPs
//
// ** IMPORTANT **
// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
ScanListenerType pulumi.StringOutput `pulumi:"scanListenerType"`
// The current state of the ODA Private Endpoint Scan Proxy.
State pulumi.StringOutput `pulumi:"state"`
// When the resource was created. A date-time string as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29.
TimeCreated pulumi.StringOutput `pulumi:"timeCreated"`
}
// NewOdaPrivateEndpointScanProxy registers a new resource with the given unique name, arguments, and options.
func NewOdaPrivateEndpointScanProxy(ctx *pulumi.Context,
name string, args *OdaPrivateEndpointScanProxyArgs, opts ...pulumi.ResourceOption) (*OdaPrivateEndpointScanProxy, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.OdaPrivateEndpointId == nil {
return nil, errors.New("invalid value for required argument 'OdaPrivateEndpointId'")
}
if args.Protocol == nil {
return nil, errors.New("invalid value for required argument 'Protocol'")
}
if args.ScanListenerInfos == nil {
return nil, errors.New("invalid value for required argument 'ScanListenerInfos'")
}
if args.ScanListenerType == nil {
return nil, errors.New("invalid value for required argument 'ScanListenerType'")
}
opts = internal.PkgResourceDefaultOpts(opts)
var resource OdaPrivateEndpointScanProxy
err := ctx.RegisterResource("oci:Oda/odaPrivateEndpointScanProxy:OdaPrivateEndpointScanProxy", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetOdaPrivateEndpointScanProxy gets an existing OdaPrivateEndpointScanProxy 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 GetOdaPrivateEndpointScanProxy(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *OdaPrivateEndpointScanProxyState, opts ...pulumi.ResourceOption) (*OdaPrivateEndpointScanProxy, error) {
var resource OdaPrivateEndpointScanProxy
err := ctx.ReadResource("oci:Oda/odaPrivateEndpointScanProxy:OdaPrivateEndpointScanProxy", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering OdaPrivateEndpointScanProxy resources.
type odaPrivateEndpointScanProxyState struct {
// Unique ODA Private Endpoint identifier which is the [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
OdaPrivateEndpointId *string `pulumi:"odaPrivateEndpointId"`
// The protocol used for communication between client, scanProxy and RAC's scan listeners
Protocol *string `pulumi:"protocol"`
// The FQDN/IPs and port information of customer's Real Application Cluster (RAC)'s SCAN listeners.
ScanListenerInfos []OdaPrivateEndpointScanProxyScanListenerInfo `pulumi:"scanListenerInfos"`
// Type indicating whether Scan listener is specified by its FQDN or list of IPs
//
// ** IMPORTANT **
// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
ScanListenerType *string `pulumi:"scanListenerType"`
// The current state of the ODA Private Endpoint Scan Proxy.
State *string `pulumi:"state"`
// When the resource was created. A date-time string as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29.
TimeCreated *string `pulumi:"timeCreated"`
}
type OdaPrivateEndpointScanProxyState struct {
// Unique ODA Private Endpoint identifier which is the [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
OdaPrivateEndpointId pulumi.StringPtrInput
// The protocol used for communication between client, scanProxy and RAC's scan listeners
Protocol pulumi.StringPtrInput
// The FQDN/IPs and port information of customer's Real Application Cluster (RAC)'s SCAN listeners.
ScanListenerInfos OdaPrivateEndpointScanProxyScanListenerInfoArrayInput
// Type indicating whether Scan listener is specified by its FQDN or list of IPs
//
// ** IMPORTANT **
// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
ScanListenerType pulumi.StringPtrInput
// The current state of the ODA Private Endpoint Scan Proxy.
State pulumi.StringPtrInput
// When the resource was created. A date-time string as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29.
TimeCreated pulumi.StringPtrInput
}
func (OdaPrivateEndpointScanProxyState) ElementType() reflect.Type {
return reflect.TypeOf((*odaPrivateEndpointScanProxyState)(nil)).Elem()
}
type odaPrivateEndpointScanProxyArgs struct {
// Unique ODA Private Endpoint identifier which is the [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
OdaPrivateEndpointId string `pulumi:"odaPrivateEndpointId"`
// The protocol used for communication between client, scanProxy and RAC's scan listeners
Protocol string `pulumi:"protocol"`
// The FQDN/IPs and port information of customer's Real Application Cluster (RAC)'s SCAN listeners.
ScanListenerInfos []OdaPrivateEndpointScanProxyScanListenerInfo `pulumi:"scanListenerInfos"`
// Type indicating whether Scan listener is specified by its FQDN or list of IPs
//
// ** IMPORTANT **
// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
ScanListenerType string `pulumi:"scanListenerType"`
}
// The set of arguments for constructing a OdaPrivateEndpointScanProxy resource.
type OdaPrivateEndpointScanProxyArgs struct {
// Unique ODA Private Endpoint identifier which is the [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
OdaPrivateEndpointId pulumi.StringInput
// The protocol used for communication between client, scanProxy and RAC's scan listeners
Protocol pulumi.StringInput
// The FQDN/IPs and port information of customer's Real Application Cluster (RAC)'s SCAN listeners.
ScanListenerInfos OdaPrivateEndpointScanProxyScanListenerInfoArrayInput
// Type indicating whether Scan listener is specified by its FQDN or list of IPs
//
// ** IMPORTANT **
// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
ScanListenerType pulumi.StringInput
}
func (OdaPrivateEndpointScanProxyArgs) ElementType() reflect.Type {
return reflect.TypeOf((*odaPrivateEndpointScanProxyArgs)(nil)).Elem()
}
type OdaPrivateEndpointScanProxyInput interface {
pulumi.Input
ToOdaPrivateEndpointScanProxyOutput() OdaPrivateEndpointScanProxyOutput
ToOdaPrivateEndpointScanProxyOutputWithContext(ctx context.Context) OdaPrivateEndpointScanProxyOutput
}
func (*OdaPrivateEndpointScanProxy) ElementType() reflect.Type {
return reflect.TypeOf((**OdaPrivateEndpointScanProxy)(nil)).Elem()
}
func (i *OdaPrivateEndpointScanProxy) ToOdaPrivateEndpointScanProxyOutput() OdaPrivateEndpointScanProxyOutput {
return i.ToOdaPrivateEndpointScanProxyOutputWithContext(context.Background())
}
func (i *OdaPrivateEndpointScanProxy) ToOdaPrivateEndpointScanProxyOutputWithContext(ctx context.Context) OdaPrivateEndpointScanProxyOutput {
return pulumi.ToOutputWithContext(ctx, i).(OdaPrivateEndpointScanProxyOutput)
}
// OdaPrivateEndpointScanProxyArrayInput is an input type that accepts OdaPrivateEndpointScanProxyArray and OdaPrivateEndpointScanProxyArrayOutput values.
// You can construct a concrete instance of `OdaPrivateEndpointScanProxyArrayInput` via:
//
// OdaPrivateEndpointScanProxyArray{ OdaPrivateEndpointScanProxyArgs{...} }
type OdaPrivateEndpointScanProxyArrayInput interface {
pulumi.Input
ToOdaPrivateEndpointScanProxyArrayOutput() OdaPrivateEndpointScanProxyArrayOutput
ToOdaPrivateEndpointScanProxyArrayOutputWithContext(context.Context) OdaPrivateEndpointScanProxyArrayOutput
}
type OdaPrivateEndpointScanProxyArray []OdaPrivateEndpointScanProxyInput
func (OdaPrivateEndpointScanProxyArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*OdaPrivateEndpointScanProxy)(nil)).Elem()
}
func (i OdaPrivateEndpointScanProxyArray) ToOdaPrivateEndpointScanProxyArrayOutput() OdaPrivateEndpointScanProxyArrayOutput {
return i.ToOdaPrivateEndpointScanProxyArrayOutputWithContext(context.Background())
}
func (i OdaPrivateEndpointScanProxyArray) ToOdaPrivateEndpointScanProxyArrayOutputWithContext(ctx context.Context) OdaPrivateEndpointScanProxyArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(OdaPrivateEndpointScanProxyArrayOutput)
}
// OdaPrivateEndpointScanProxyMapInput is an input type that accepts OdaPrivateEndpointScanProxyMap and OdaPrivateEndpointScanProxyMapOutput values.
// You can construct a concrete instance of `OdaPrivateEndpointScanProxyMapInput` via:
//
// OdaPrivateEndpointScanProxyMap{ "key": OdaPrivateEndpointScanProxyArgs{...} }
type OdaPrivateEndpointScanProxyMapInput interface {
pulumi.Input
ToOdaPrivateEndpointScanProxyMapOutput() OdaPrivateEndpointScanProxyMapOutput
ToOdaPrivateEndpointScanProxyMapOutputWithContext(context.Context) OdaPrivateEndpointScanProxyMapOutput
}
type OdaPrivateEndpointScanProxyMap map[string]OdaPrivateEndpointScanProxyInput
func (OdaPrivateEndpointScanProxyMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*OdaPrivateEndpointScanProxy)(nil)).Elem()
}
func (i OdaPrivateEndpointScanProxyMap) ToOdaPrivateEndpointScanProxyMapOutput() OdaPrivateEndpointScanProxyMapOutput {
return i.ToOdaPrivateEndpointScanProxyMapOutputWithContext(context.Background())
}
func (i OdaPrivateEndpointScanProxyMap) ToOdaPrivateEndpointScanProxyMapOutputWithContext(ctx context.Context) OdaPrivateEndpointScanProxyMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(OdaPrivateEndpointScanProxyMapOutput)
}
type OdaPrivateEndpointScanProxyOutput struct{ *pulumi.OutputState }
func (OdaPrivateEndpointScanProxyOutput) ElementType() reflect.Type {
return reflect.TypeOf((**OdaPrivateEndpointScanProxy)(nil)).Elem()
}
func (o OdaPrivateEndpointScanProxyOutput) ToOdaPrivateEndpointScanProxyOutput() OdaPrivateEndpointScanProxyOutput {
return o
}
func (o OdaPrivateEndpointScanProxyOutput) ToOdaPrivateEndpointScanProxyOutputWithContext(ctx context.Context) OdaPrivateEndpointScanProxyOutput {
return o
}
// Unique ODA Private Endpoint identifier which is the [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
func (o OdaPrivateEndpointScanProxyOutput) OdaPrivateEndpointId() pulumi.StringOutput {
return o.ApplyT(func(v *OdaPrivateEndpointScanProxy) pulumi.StringOutput { return v.OdaPrivateEndpointId }).(pulumi.StringOutput)
}
// The protocol used for communication between client, scanProxy and RAC's scan listeners
func (o OdaPrivateEndpointScanProxyOutput) Protocol() pulumi.StringOutput {
return o.ApplyT(func(v *OdaPrivateEndpointScanProxy) pulumi.StringOutput { return v.Protocol }).(pulumi.StringOutput)
}
// The FQDN/IPs and port information of customer's Real Application Cluster (RAC)'s SCAN listeners.
func (o OdaPrivateEndpointScanProxyOutput) ScanListenerInfos() OdaPrivateEndpointScanProxyScanListenerInfoArrayOutput {
return o.ApplyT(func(v *OdaPrivateEndpointScanProxy) OdaPrivateEndpointScanProxyScanListenerInfoArrayOutput {
return v.ScanListenerInfos
}).(OdaPrivateEndpointScanProxyScanListenerInfoArrayOutput)
}
// Type indicating whether Scan listener is specified by its FQDN or list of IPs
//
// ** IMPORTANT **
// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
func (o OdaPrivateEndpointScanProxyOutput) ScanListenerType() pulumi.StringOutput {
return o.ApplyT(func(v *OdaPrivateEndpointScanProxy) pulumi.StringOutput { return v.ScanListenerType }).(pulumi.StringOutput)
}
// The current state of the ODA Private Endpoint Scan Proxy.
func (o OdaPrivateEndpointScanProxyOutput) State() pulumi.StringOutput {
return o.ApplyT(func(v *OdaPrivateEndpointScanProxy) pulumi.StringOutput { return v.State }).(pulumi.StringOutput)
}
// When the resource was created. A date-time string as described in [RFC 3339](https://tools.ietf.org/rfc/rfc3339), section 14.29.
func (o OdaPrivateEndpointScanProxyOutput) TimeCreated() pulumi.StringOutput {
return o.ApplyT(func(v *OdaPrivateEndpointScanProxy) pulumi.StringOutput { return v.TimeCreated }).(pulumi.StringOutput)
}
type OdaPrivateEndpointScanProxyArrayOutput struct{ *pulumi.OutputState }
func (OdaPrivateEndpointScanProxyArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*OdaPrivateEndpointScanProxy)(nil)).Elem()
}
func (o OdaPrivateEndpointScanProxyArrayOutput) ToOdaPrivateEndpointScanProxyArrayOutput() OdaPrivateEndpointScanProxyArrayOutput {
return o
}
func (o OdaPrivateEndpointScanProxyArrayOutput) ToOdaPrivateEndpointScanProxyArrayOutputWithContext(ctx context.Context) OdaPrivateEndpointScanProxyArrayOutput {
return o
}
func (o OdaPrivateEndpointScanProxyArrayOutput) Index(i pulumi.IntInput) OdaPrivateEndpointScanProxyOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *OdaPrivateEndpointScanProxy {
return vs[0].([]*OdaPrivateEndpointScanProxy)[vs[1].(int)]
}).(OdaPrivateEndpointScanProxyOutput)
}
type OdaPrivateEndpointScanProxyMapOutput struct{ *pulumi.OutputState }
func (OdaPrivateEndpointScanProxyMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*OdaPrivateEndpointScanProxy)(nil)).Elem()
}
func (o OdaPrivateEndpointScanProxyMapOutput) ToOdaPrivateEndpointScanProxyMapOutput() OdaPrivateEndpointScanProxyMapOutput {
return o
}
func (o OdaPrivateEndpointScanProxyMapOutput) ToOdaPrivateEndpointScanProxyMapOutputWithContext(ctx context.Context) OdaPrivateEndpointScanProxyMapOutput {
return o
}
func (o OdaPrivateEndpointScanProxyMapOutput) MapIndex(k pulumi.StringInput) OdaPrivateEndpointScanProxyOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *OdaPrivateEndpointScanProxy {
return vs[0].(map[string]*OdaPrivateEndpointScanProxy)[vs[1].(string)]
}).(OdaPrivateEndpointScanProxyOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*OdaPrivateEndpointScanProxyInput)(nil)).Elem(), &OdaPrivateEndpointScanProxy{})
pulumi.RegisterInputType(reflect.TypeOf((*OdaPrivateEndpointScanProxyArrayInput)(nil)).Elem(), OdaPrivateEndpointScanProxyArray{})
pulumi.RegisterInputType(reflect.TypeOf((*OdaPrivateEndpointScanProxyMapInput)(nil)).Elem(), OdaPrivateEndpointScanProxyMap{})
pulumi.RegisterOutputType(OdaPrivateEndpointScanProxyOutput{})
pulumi.RegisterOutputType(OdaPrivateEndpointScanProxyArrayOutput{})
pulumi.RegisterOutputType(OdaPrivateEndpointScanProxyMapOutput{})
}