-
Notifications
You must be signed in to change notification settings - Fork 112
/
zz_integration_types.go
executable file
·414 lines (320 loc) · 25.7 KB
/
zz_integration_types.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
// SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>
//
// SPDX-License-Identifier: Apache-2.0
// Code generated by upjet. DO NOT EDIT.
package v1beta1
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime/schema"
v1 "github.com/crossplane/crossplane-runtime/apis/common/v1"
)
type IntegrationInitParameters struct {
// List of cache key parameters for the integration.
// +listType=set
CacheKeyParameters []*string `json:"cacheKeyParameters,omitempty" tf:"cache_key_parameters,omitempty"`
// Integration's cache namespace.
CacheNamespace *string `json:"cacheNamespace,omitempty" tf:"cache_namespace,omitempty"`
// ID of the VpcLink used for the integration. Required if connection_type is VPC_LINK
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/apigateway/v1beta1.VPCLink
// +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID()
ConnectionID *string `json:"connectionId,omitempty" tf:"connection_id,omitempty"`
// Reference to a VPCLink in apigateway to populate connectionId.
// +kubebuilder:validation:Optional
ConnectionIDRef *v1.Reference `json:"connectionIdRef,omitempty" tf:"-"`
// Selector for a VPCLink in apigateway to populate connectionId.
// +kubebuilder:validation:Optional
ConnectionIDSelector *v1.Selector `json:"connectionIdSelector,omitempty" tf:"-"`
// Integration input's connectionType. Valid values are INTERNET (default for connections through the public routable internet), and VPC_LINK (for private connections between API Gateway and a network load balancer in a VPC).
ConnectionType *string `json:"connectionType,omitempty" tf:"connection_type,omitempty"`
// How to handle request payload content type conversions. Supported values are CONVERT_TO_BINARY and CONVERT_TO_TEXT. If this property is not defined, the request payload will be passed through from the method request to integration request without modification, provided that the passthroughBehaviors is configured to support payload pass-through.
ContentHandling *string `json:"contentHandling,omitempty" tf:"content_handling,omitempty"`
// Credentials required for the integration. For AWS integrations, 2 options are available. To specify an IAM Role for Amazon API Gateway to assume, use the role's ARN. To require that the caller's identity be passed through from the request, specify the string arn:aws:iam::\*:user/\*.
Credentials *string `json:"credentials,omitempty" tf:"credentials,omitempty"`
// HTTP method (GET, POST, PUT, DELETE, HEAD, OPTION, ANY)
// when calling the associated resource.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/apigateway/v1beta1.Method
// +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("http_method",false)
HTTPMethod *string `json:"httpMethod,omitempty" tf:"http_method,omitempty"`
// Reference to a Method in apigateway to populate httpMethod.
// +kubebuilder:validation:Optional
HTTPMethodRef *v1.Reference `json:"httpMethodRef,omitempty" tf:"-"`
// Selector for a Method in apigateway to populate httpMethod.
// +kubebuilder:validation:Optional
HTTPMethodSelector *v1.Selector `json:"httpMethodSelector,omitempty" tf:"-"`
// Integration HTTP method
// (GET, POST, PUT, DELETE, HEAD, OPTIONs, ANY, PATCH) specifying how API Gateway will interact with the back end.
// Required if type is AWS, AWS_PROXY, HTTP or HTTP_PROXY.
// Not all methods are compatible with all AWS integrations.
// e.g., Lambda function can only be invoked via POST.
IntegrationHTTPMethod *string `json:"integrationHttpMethod,omitempty" tf:"integration_http_method,omitempty"`
// Integration passthrough behavior (WHEN_NO_MATCH, WHEN_NO_TEMPLATES, NEVER). Required if request_templates is used.
PassthroughBehavior *string `json:"passthroughBehavior,omitempty" tf:"passthrough_behavior,omitempty"`
// Map of request query string parameters and headers that should be passed to the backend responder.
// For example: request_parameters = { "integration.request.header.X-Some-Other-Header" = "method.request.header.X-Some-Header" }
// +mapType=granular
RequestParameters map[string]*string `json:"requestParameters,omitempty" tf:"request_parameters,omitempty"`
// Map of the integration's request templates.
// +mapType=granular
RequestTemplates map[string]*string `json:"requestTemplates,omitempty" tf:"request_templates,omitempty"`
// API resource ID.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/apigateway/v1beta1.Resource
// +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID()
ResourceID *string `json:"resourceId,omitempty" tf:"resource_id,omitempty"`
// Reference to a Resource in apigateway to populate resourceId.
// +kubebuilder:validation:Optional
ResourceIDRef *v1.Reference `json:"resourceIdRef,omitempty" tf:"-"`
// Selector for a Resource in apigateway to populate resourceId.
// +kubebuilder:validation:Optional
ResourceIDSelector *v1.Selector `json:"resourceIdSelector,omitempty" tf:"-"`
// ID of the associated REST API.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/apigateway/v1beta1.RestAPI
// +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID()
RestAPIID *string `json:"restApiId,omitempty" tf:"rest_api_id,omitempty"`
// Reference to a RestAPI in apigateway to populate restApiId.
// +kubebuilder:validation:Optional
RestAPIIDRef *v1.Reference `json:"restApiIdRef,omitempty" tf:"-"`
// Selector for a RestAPI in apigateway to populate restApiId.
// +kubebuilder:validation:Optional
RestAPIIDSelector *v1.Selector `json:"restApiIdSelector,omitempty" tf:"-"`
// TLS configuration. See below.
TLSConfig []TLSConfigInitParameters `json:"tlsConfig,omitempty" tf:"tls_config,omitempty"`
// Custom timeout between 50 and 29,000 milliseconds. The default value is 29,000 milliseconds.
TimeoutMilliseconds *float64 `json:"timeoutMilliseconds,omitempty" tf:"timeout_milliseconds,omitempty"`
// Integration input's type. Valid values are HTTP (for HTTP backends), MOCK (not calling any real backend), AWS (for AWS services), AWS_PROXY (for Lambda proxy integration) and HTTP_PROXY (for HTTP proxy integration). An HTTP or HTTP_PROXY integration with a connection_type of VPC_LINK is referred to as a private integration and uses a VpcLink to connect API Gateway to a network load balancer of a VPC.
Type *string `json:"type,omitempty" tf:"type,omitempty"`
// Input's URI. Required if type is AWS, AWS_PROXY, HTTP or HTTP_PROXY.
// For HTTP integrations, the URI must be a fully formed, encoded HTTP(S) URL according to the RFC-3986 specification . For AWS integrations, the URI should be of the form arn:aws:apigateway:{region}:{subdomain.service|service}:{path|action}/{service_api}. region, subdomain and service are used to determine the right endpoint.
// e.g., arn:aws:apigateway:eu-west-1:lambda:path/2015-03-31/functions/arn:aws:lambda:eu-west-1:012345678901:function:my-func/invocations. For private integrations, the URI parameter is not used for routing requests to your endpoint, but is used for setting the Host header and for certificate validation.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/lambda/v1beta1.Function
// +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("invoke_arn",true)
URI *string `json:"uri,omitempty" tf:"uri,omitempty"`
// Reference to a Function in lambda to populate uri.
// +kubebuilder:validation:Optional
URIRef *v1.Reference `json:"uriRef,omitempty" tf:"-"`
// Selector for a Function in lambda to populate uri.
// +kubebuilder:validation:Optional
URISelector *v1.Selector `json:"uriSelector,omitempty" tf:"-"`
}
type IntegrationObservation struct {
// List of cache key parameters for the integration.
// +listType=set
CacheKeyParameters []*string `json:"cacheKeyParameters,omitempty" tf:"cache_key_parameters,omitempty"`
// Integration's cache namespace.
CacheNamespace *string `json:"cacheNamespace,omitempty" tf:"cache_namespace,omitempty"`
// ID of the VpcLink used for the integration. Required if connection_type is VPC_LINK
ConnectionID *string `json:"connectionId,omitempty" tf:"connection_id,omitempty"`
// Integration input's connectionType. Valid values are INTERNET (default for connections through the public routable internet), and VPC_LINK (for private connections between API Gateway and a network load balancer in a VPC).
ConnectionType *string `json:"connectionType,omitempty" tf:"connection_type,omitempty"`
// How to handle request payload content type conversions. Supported values are CONVERT_TO_BINARY and CONVERT_TO_TEXT. If this property is not defined, the request payload will be passed through from the method request to integration request without modification, provided that the passthroughBehaviors is configured to support payload pass-through.
ContentHandling *string `json:"contentHandling,omitempty" tf:"content_handling,omitempty"`
// Credentials required for the integration. For AWS integrations, 2 options are available. To specify an IAM Role for Amazon API Gateway to assume, use the role's ARN. To require that the caller's identity be passed through from the request, specify the string arn:aws:iam::\*:user/\*.
Credentials *string `json:"credentials,omitempty" tf:"credentials,omitempty"`
// HTTP method (GET, POST, PUT, DELETE, HEAD, OPTION, ANY)
// when calling the associated resource.
HTTPMethod *string `json:"httpMethod,omitempty" tf:"http_method,omitempty"`
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// Integration HTTP method
// (GET, POST, PUT, DELETE, HEAD, OPTIONs, ANY, PATCH) specifying how API Gateway will interact with the back end.
// Required if type is AWS, AWS_PROXY, HTTP or HTTP_PROXY.
// Not all methods are compatible with all AWS integrations.
// e.g., Lambda function can only be invoked via POST.
IntegrationHTTPMethod *string `json:"integrationHttpMethod,omitempty" tf:"integration_http_method,omitempty"`
// Integration passthrough behavior (WHEN_NO_MATCH, WHEN_NO_TEMPLATES, NEVER). Required if request_templates is used.
PassthroughBehavior *string `json:"passthroughBehavior,omitempty" tf:"passthrough_behavior,omitempty"`
// Map of request query string parameters and headers that should be passed to the backend responder.
// For example: request_parameters = { "integration.request.header.X-Some-Other-Header" = "method.request.header.X-Some-Header" }
// +mapType=granular
RequestParameters map[string]*string `json:"requestParameters,omitempty" tf:"request_parameters,omitempty"`
// Map of the integration's request templates.
// +mapType=granular
RequestTemplates map[string]*string `json:"requestTemplates,omitempty" tf:"request_templates,omitempty"`
// API resource ID.
ResourceID *string `json:"resourceId,omitempty" tf:"resource_id,omitempty"`
// ID of the associated REST API.
RestAPIID *string `json:"restApiId,omitempty" tf:"rest_api_id,omitempty"`
// TLS configuration. See below.
TLSConfig []TLSConfigObservation `json:"tlsConfig,omitempty" tf:"tls_config,omitempty"`
// Custom timeout between 50 and 29,000 milliseconds. The default value is 29,000 milliseconds.
TimeoutMilliseconds *float64 `json:"timeoutMilliseconds,omitempty" tf:"timeout_milliseconds,omitempty"`
// Integration input's type. Valid values are HTTP (for HTTP backends), MOCK (not calling any real backend), AWS (for AWS services), AWS_PROXY (for Lambda proxy integration) and HTTP_PROXY (for HTTP proxy integration). An HTTP or HTTP_PROXY integration with a connection_type of VPC_LINK is referred to as a private integration and uses a VpcLink to connect API Gateway to a network load balancer of a VPC.
Type *string `json:"type,omitempty" tf:"type,omitempty"`
// Input's URI. Required if type is AWS, AWS_PROXY, HTTP or HTTP_PROXY.
// For HTTP integrations, the URI must be a fully formed, encoded HTTP(S) URL according to the RFC-3986 specification . For AWS integrations, the URI should be of the form arn:aws:apigateway:{region}:{subdomain.service|service}:{path|action}/{service_api}. region, subdomain and service are used to determine the right endpoint.
// e.g., arn:aws:apigateway:eu-west-1:lambda:path/2015-03-31/functions/arn:aws:lambda:eu-west-1:012345678901:function:my-func/invocations. For private integrations, the URI parameter is not used for routing requests to your endpoint, but is used for setting the Host header and for certificate validation.
URI *string `json:"uri,omitempty" tf:"uri,omitempty"`
}
type IntegrationParameters struct {
// List of cache key parameters for the integration.
// +kubebuilder:validation:Optional
// +listType=set
CacheKeyParameters []*string `json:"cacheKeyParameters,omitempty" tf:"cache_key_parameters,omitempty"`
// Integration's cache namespace.
// +kubebuilder:validation:Optional
CacheNamespace *string `json:"cacheNamespace,omitempty" tf:"cache_namespace,omitempty"`
// ID of the VpcLink used for the integration. Required if connection_type is VPC_LINK
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/apigateway/v1beta1.VPCLink
// +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID()
// +kubebuilder:validation:Optional
ConnectionID *string `json:"connectionId,omitempty" tf:"connection_id,omitempty"`
// Reference to a VPCLink in apigateway to populate connectionId.
// +kubebuilder:validation:Optional
ConnectionIDRef *v1.Reference `json:"connectionIdRef,omitempty" tf:"-"`
// Selector for a VPCLink in apigateway to populate connectionId.
// +kubebuilder:validation:Optional
ConnectionIDSelector *v1.Selector `json:"connectionIdSelector,omitempty" tf:"-"`
// Integration input's connectionType. Valid values are INTERNET (default for connections through the public routable internet), and VPC_LINK (for private connections between API Gateway and a network load balancer in a VPC).
// +kubebuilder:validation:Optional
ConnectionType *string `json:"connectionType,omitempty" tf:"connection_type,omitempty"`
// How to handle request payload content type conversions. Supported values are CONVERT_TO_BINARY and CONVERT_TO_TEXT. If this property is not defined, the request payload will be passed through from the method request to integration request without modification, provided that the passthroughBehaviors is configured to support payload pass-through.
// +kubebuilder:validation:Optional
ContentHandling *string `json:"contentHandling,omitempty" tf:"content_handling,omitempty"`
// Credentials required for the integration. For AWS integrations, 2 options are available. To specify an IAM Role for Amazon API Gateway to assume, use the role's ARN. To require that the caller's identity be passed through from the request, specify the string arn:aws:iam::\*:user/\*.
// +kubebuilder:validation:Optional
Credentials *string `json:"credentials,omitempty" tf:"credentials,omitempty"`
// HTTP method (GET, POST, PUT, DELETE, HEAD, OPTION, ANY)
// when calling the associated resource.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/apigateway/v1beta1.Method
// +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("http_method",false)
// +kubebuilder:validation:Optional
HTTPMethod *string `json:"httpMethod,omitempty" tf:"http_method,omitempty"`
// Reference to a Method in apigateway to populate httpMethod.
// +kubebuilder:validation:Optional
HTTPMethodRef *v1.Reference `json:"httpMethodRef,omitempty" tf:"-"`
// Selector for a Method in apigateway to populate httpMethod.
// +kubebuilder:validation:Optional
HTTPMethodSelector *v1.Selector `json:"httpMethodSelector,omitempty" tf:"-"`
// Integration HTTP method
// (GET, POST, PUT, DELETE, HEAD, OPTIONs, ANY, PATCH) specifying how API Gateway will interact with the back end.
// Required if type is AWS, AWS_PROXY, HTTP or HTTP_PROXY.
// Not all methods are compatible with all AWS integrations.
// e.g., Lambda function can only be invoked via POST.
// +kubebuilder:validation:Optional
IntegrationHTTPMethod *string `json:"integrationHttpMethod,omitempty" tf:"integration_http_method,omitempty"`
// Integration passthrough behavior (WHEN_NO_MATCH, WHEN_NO_TEMPLATES, NEVER). Required if request_templates is used.
// +kubebuilder:validation:Optional
PassthroughBehavior *string `json:"passthroughBehavior,omitempty" tf:"passthrough_behavior,omitempty"`
// Region is the region you'd like your resource to be created in.
// +upjet:crd:field:TFTag=-
// +kubebuilder:validation:Required
Region *string `json:"region" tf:"-"`
// Map of request query string parameters and headers that should be passed to the backend responder.
// For example: request_parameters = { "integration.request.header.X-Some-Other-Header" = "method.request.header.X-Some-Header" }
// +kubebuilder:validation:Optional
// +mapType=granular
RequestParameters map[string]*string `json:"requestParameters,omitempty" tf:"request_parameters,omitempty"`
// Map of the integration's request templates.
// +kubebuilder:validation:Optional
// +mapType=granular
RequestTemplates map[string]*string `json:"requestTemplates,omitempty" tf:"request_templates,omitempty"`
// API resource ID.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/apigateway/v1beta1.Resource
// +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID()
// +kubebuilder:validation:Optional
ResourceID *string `json:"resourceId,omitempty" tf:"resource_id,omitempty"`
// Reference to a Resource in apigateway to populate resourceId.
// +kubebuilder:validation:Optional
ResourceIDRef *v1.Reference `json:"resourceIdRef,omitempty" tf:"-"`
// Selector for a Resource in apigateway to populate resourceId.
// +kubebuilder:validation:Optional
ResourceIDSelector *v1.Selector `json:"resourceIdSelector,omitempty" tf:"-"`
// ID of the associated REST API.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/apigateway/v1beta1.RestAPI
// +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID()
// +kubebuilder:validation:Optional
RestAPIID *string `json:"restApiId,omitempty" tf:"rest_api_id,omitempty"`
// Reference to a RestAPI in apigateway to populate restApiId.
// +kubebuilder:validation:Optional
RestAPIIDRef *v1.Reference `json:"restApiIdRef,omitempty" tf:"-"`
// Selector for a RestAPI in apigateway to populate restApiId.
// +kubebuilder:validation:Optional
RestAPIIDSelector *v1.Selector `json:"restApiIdSelector,omitempty" tf:"-"`
// TLS configuration. See below.
// +kubebuilder:validation:Optional
TLSConfig []TLSConfigParameters `json:"tlsConfig,omitempty" tf:"tls_config,omitempty"`
// Custom timeout between 50 and 29,000 milliseconds. The default value is 29,000 milliseconds.
// +kubebuilder:validation:Optional
TimeoutMilliseconds *float64 `json:"timeoutMilliseconds,omitempty" tf:"timeout_milliseconds,omitempty"`
// Integration input's type. Valid values are HTTP (for HTTP backends), MOCK (not calling any real backend), AWS (for AWS services), AWS_PROXY (for Lambda proxy integration) and HTTP_PROXY (for HTTP proxy integration). An HTTP or HTTP_PROXY integration with a connection_type of VPC_LINK is referred to as a private integration and uses a VpcLink to connect API Gateway to a network load balancer of a VPC.
// +kubebuilder:validation:Optional
Type *string `json:"type,omitempty" tf:"type,omitempty"`
// Input's URI. Required if type is AWS, AWS_PROXY, HTTP or HTTP_PROXY.
// For HTTP integrations, the URI must be a fully formed, encoded HTTP(S) URL according to the RFC-3986 specification . For AWS integrations, the URI should be of the form arn:aws:apigateway:{region}:{subdomain.service|service}:{path|action}/{service_api}. region, subdomain and service are used to determine the right endpoint.
// e.g., arn:aws:apigateway:eu-west-1:lambda:path/2015-03-31/functions/arn:aws:lambda:eu-west-1:012345678901:function:my-func/invocations. For private integrations, the URI parameter is not used for routing requests to your endpoint, but is used for setting the Host header and for certificate validation.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/lambda/v1beta1.Function
// +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("invoke_arn",true)
// +kubebuilder:validation:Optional
URI *string `json:"uri,omitempty" tf:"uri,omitempty"`
// Reference to a Function in lambda to populate uri.
// +kubebuilder:validation:Optional
URIRef *v1.Reference `json:"uriRef,omitempty" tf:"-"`
// Selector for a Function in lambda to populate uri.
// +kubebuilder:validation:Optional
URISelector *v1.Selector `json:"uriSelector,omitempty" tf:"-"`
}
type TLSConfigInitParameters struct {
// Whether or not API Gateway skips verification that the certificate for an integration endpoint is issued by a supported certificate authority. This isn’t recommended, but it enables you to use certificates that are signed by private certificate authorities, or certificates that are self-signed. If enabled, API Gateway still performs basic certificate validation, which includes checking the certificate's expiration date, hostname, and presence of a root certificate authority. Supported only for HTTP and HTTP_PROXY integrations.
InsecureSkipVerification *bool `json:"insecureSkipVerification,omitempty" tf:"insecure_skip_verification,omitempty"`
}
type TLSConfigObservation struct {
// Whether or not API Gateway skips verification that the certificate for an integration endpoint is issued by a supported certificate authority. This isn’t recommended, but it enables you to use certificates that are signed by private certificate authorities, or certificates that are self-signed. If enabled, API Gateway still performs basic certificate validation, which includes checking the certificate's expiration date, hostname, and presence of a root certificate authority. Supported only for HTTP and HTTP_PROXY integrations.
InsecureSkipVerification *bool `json:"insecureSkipVerification,omitempty" tf:"insecure_skip_verification,omitempty"`
}
type TLSConfigParameters struct {
// Whether or not API Gateway skips verification that the certificate for an integration endpoint is issued by a supported certificate authority. This isn’t recommended, but it enables you to use certificates that are signed by private certificate authorities, or certificates that are self-signed. If enabled, API Gateway still performs basic certificate validation, which includes checking the certificate's expiration date, hostname, and presence of a root certificate authority. Supported only for HTTP and HTTP_PROXY integrations.
// +kubebuilder:validation:Optional
InsecureSkipVerification *bool `json:"insecureSkipVerification,omitempty" tf:"insecure_skip_verification,omitempty"`
}
// IntegrationSpec defines the desired state of Integration
type IntegrationSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider IntegrationParameters `json:"forProvider"`
// THIS IS A BETA FIELD. It will be honored
// unless the Management Policies feature flag is disabled.
// InitProvider holds the same fields as ForProvider, with the exception
// of Identifier and other resource reference fields. The fields that are
// in InitProvider are merged into ForProvider when the resource is created.
// The same fields are also added to the terraform ignore_changes hook, to
// avoid updating them after creation. This is useful for fields that are
// required on creation, but we do not desire to update them after creation,
// for example because of an external controller is managing them, like an
// autoscaler.
InitProvider IntegrationInitParameters `json:"initProvider,omitempty"`
}
// IntegrationStatus defines the observed state of Integration.
type IntegrationStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider IntegrationObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// +kubebuilder:storageversion
// Integration is the Schema for the Integrations API. Provides an HTTP Method Integration for an API Gateway Integration.
// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status"
// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status"
// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name"
// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp"
// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws}
type Integration struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.type) || (has(self.initProvider) && has(self.initProvider.type))",message="spec.forProvider.type is a required parameter"
Spec IntegrationSpec `json:"spec"`
Status IntegrationStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// IntegrationList contains a list of Integrations
type IntegrationList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Integration `json:"items"`
}
// Repository type metadata.
var (
Integration_Kind = "Integration"
Integration_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Integration_Kind}.String()
Integration_KindAPIVersion = Integration_Kind + "." + CRDGroupVersion.String()
Integration_GroupVersionKind = CRDGroupVersion.WithKind(Integration_Kind)
)
func init() {
SchemeBuilder.Register(&Integration{}, &IntegrationList{})
}