/
zz_datasource_types.go
executable file
·608 lines (438 loc) · 25.6 KB
/
zz_datasource_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
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
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
// 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 AuthorizationConfigInitParameters struct {
// Authorization type that the HTTP endpoint requires. Default values is AWS_IAM.
AuthorizationType *string `json:"authorizationType,omitempty" tf:"authorization_type,omitempty"`
// Identity and Access Management (IAM) settings. See AWS IAM Config.
AwsIAMConfig []AwsIAMConfigInitParameters `json:"awsIamConfig,omitempty" tf:"aws_iam_config,omitempty"`
}
type AuthorizationConfigObservation struct {
// Authorization type that the HTTP endpoint requires. Default values is AWS_IAM.
AuthorizationType *string `json:"authorizationType,omitempty" tf:"authorization_type,omitempty"`
// Identity and Access Management (IAM) settings. See AWS IAM Config.
AwsIAMConfig []AwsIAMConfigObservation `json:"awsIamConfig,omitempty" tf:"aws_iam_config,omitempty"`
}
type AuthorizationConfigParameters struct {
// Authorization type that the HTTP endpoint requires. Default values is AWS_IAM.
// +kubebuilder:validation:Optional
AuthorizationType *string `json:"authorizationType,omitempty" tf:"authorization_type,omitempty"`
// Identity and Access Management (IAM) settings. See AWS IAM Config.
// +kubebuilder:validation:Optional
AwsIAMConfig []AwsIAMConfigParameters `json:"awsIamConfig,omitempty" tf:"aws_iam_config,omitempty"`
}
type AwsIAMConfigInitParameters struct {
// Signing Amazon Web Services Region for IAM authorization.
SigningRegion *string `json:"signingRegion,omitempty" tf:"signing_region,omitempty"`
// Signing service name for IAM authorization.
SigningServiceName *string `json:"signingServiceName,omitempty" tf:"signing_service_name,omitempty"`
}
type AwsIAMConfigObservation struct {
// Signing Amazon Web Services Region for IAM authorization.
SigningRegion *string `json:"signingRegion,omitempty" tf:"signing_region,omitempty"`
// Signing service name for IAM authorization.
SigningServiceName *string `json:"signingServiceName,omitempty" tf:"signing_service_name,omitempty"`
}
type AwsIAMConfigParameters struct {
// Signing Amazon Web Services Region for IAM authorization.
// +kubebuilder:validation:Optional
SigningRegion *string `json:"signingRegion,omitempty" tf:"signing_region,omitempty"`
// Signing service name for IAM authorization.
// +kubebuilder:validation:Optional
SigningServiceName *string `json:"signingServiceName,omitempty" tf:"signing_service_name,omitempty"`
}
type DatasourceInitParameters struct {
// Description of the data source.
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// DynamoDB settings. See DynamoDB Config
DynamodbConfig []DynamodbConfigInitParameters `json:"dynamodbConfig,omitempty" tf:"dynamodb_config,omitempty"`
// Amazon Elasticsearch settings. See ElasticSearch Config
ElasticsearchConfig []ElasticsearchConfigInitParameters `json:"elasticsearchConfig,omitempty" tf:"elasticsearch_config,omitempty"`
// AWS EventBridge settings. See Event Bridge Config
EventBridgeConfig []EventBridgeConfigInitParameters `json:"eventBridgeConfig,omitempty" tf:"event_bridge_config,omitempty"`
// HTTP settings. See HTTP Config
HTTPConfig []HTTPConfigInitParameters `json:"httpConfig,omitempty" tf:"http_config,omitempty"`
// AWS Lambda settings. See Lambda Config
LambdaConfig []LambdaConfigInitParameters `json:"lambdaConfig,omitempty" tf:"lambda_config,omitempty"`
// Amazon OpenSearch Service settings. See OpenSearch Service Config
OpensearchserviceConfig []OpensearchserviceConfigInitParameters `json:"opensearchserviceConfig,omitempty" tf:"opensearchservice_config,omitempty"`
// AWS RDS settings. See Relational Database Config
RelationalDatabaseConfig []RelationalDatabaseConfigInitParameters `json:"relationalDatabaseConfig,omitempty" tf:"relational_database_config,omitempty"`
// IAM service role ARN for the data source. Required if type is specified as AWS_LAMBDA, AMAZON_DYNAMODB, AMAZON_ELASTICSEARCH, AMAZON_EVENTBRIDGE, or AMAZON_OPENSEARCH_SERVICE.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role
// +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor()
ServiceRoleArn *string `json:"serviceRoleArn,omitempty" tf:"service_role_arn,omitempty"`
// Reference to a Role in iam to populate serviceRoleArn.
// +kubebuilder:validation:Optional
ServiceRoleArnRef *v1.Reference `json:"serviceRoleArnRef,omitempty" tf:"-"`
// Selector for a Role in iam to populate serviceRoleArn.
// +kubebuilder:validation:Optional
ServiceRoleArnSelector *v1.Selector `json:"serviceRoleArnSelector,omitempty" tf:"-"`
// Type of the Data Source. Valid values: AWS_LAMBDA, AMAZON_DYNAMODB, AMAZON_ELASTICSEARCH, HTTP, NONE, RELATIONAL_DATABASE, AMAZON_EVENTBRIDGE, AMAZON_OPENSEARCH_SERVICE.
Type *string `json:"type,omitempty" tf:"type,omitempty"`
}
type DatasourceObservation struct {
// API ID for the GraphQL API for the data source.
APIID *string `json:"apiId,omitempty" tf:"api_id,omitempty"`
// ARN
Arn *string `json:"arn,omitempty" tf:"arn,omitempty"`
// Description of the data source.
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// DynamoDB settings. See DynamoDB Config
DynamodbConfig []DynamodbConfigObservation `json:"dynamodbConfig,omitempty" tf:"dynamodb_config,omitempty"`
// Amazon Elasticsearch settings. See ElasticSearch Config
ElasticsearchConfig []ElasticsearchConfigObservation `json:"elasticsearchConfig,omitempty" tf:"elasticsearch_config,omitempty"`
// AWS EventBridge settings. See Event Bridge Config
EventBridgeConfig []EventBridgeConfigObservation `json:"eventBridgeConfig,omitempty" tf:"event_bridge_config,omitempty"`
// HTTP settings. See HTTP Config
HTTPConfig []HTTPConfigObservation `json:"httpConfig,omitempty" tf:"http_config,omitempty"`
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// AWS Lambda settings. See Lambda Config
LambdaConfig []LambdaConfigObservation `json:"lambdaConfig,omitempty" tf:"lambda_config,omitempty"`
// Amazon OpenSearch Service settings. See OpenSearch Service Config
OpensearchserviceConfig []OpensearchserviceConfigObservation `json:"opensearchserviceConfig,omitempty" tf:"opensearchservice_config,omitempty"`
// AWS RDS settings. See Relational Database Config
RelationalDatabaseConfig []RelationalDatabaseConfigObservation `json:"relationalDatabaseConfig,omitempty" tf:"relational_database_config,omitempty"`
// IAM service role ARN for the data source. Required if type is specified as AWS_LAMBDA, AMAZON_DYNAMODB, AMAZON_ELASTICSEARCH, AMAZON_EVENTBRIDGE, or AMAZON_OPENSEARCH_SERVICE.
ServiceRoleArn *string `json:"serviceRoleArn,omitempty" tf:"service_role_arn,omitempty"`
// Type of the Data Source. Valid values: AWS_LAMBDA, AMAZON_DYNAMODB, AMAZON_ELASTICSEARCH, HTTP, NONE, RELATIONAL_DATABASE, AMAZON_EVENTBRIDGE, AMAZON_OPENSEARCH_SERVICE.
Type *string `json:"type,omitempty" tf:"type,omitempty"`
}
type DatasourceParameters struct {
// API ID for the GraphQL API for the data source.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/appsync/v1beta1.GraphQLAPI
// +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractResourceID()
// +kubebuilder:validation:Optional
APIID *string `json:"apiId,omitempty" tf:"api_id,omitempty"`
// Reference to a GraphQLAPI in appsync to populate apiId.
// +kubebuilder:validation:Optional
APIIDRef *v1.Reference `json:"apiIdRef,omitempty" tf:"-"`
// Selector for a GraphQLAPI in appsync to populate apiId.
// +kubebuilder:validation:Optional
APIIDSelector *v1.Selector `json:"apiIdSelector,omitempty" tf:"-"`
// Description of the data source.
// +kubebuilder:validation:Optional
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// DynamoDB settings. See DynamoDB Config
// +kubebuilder:validation:Optional
DynamodbConfig []DynamodbConfigParameters `json:"dynamodbConfig,omitempty" tf:"dynamodb_config,omitempty"`
// Amazon Elasticsearch settings. See ElasticSearch Config
// +kubebuilder:validation:Optional
ElasticsearchConfig []ElasticsearchConfigParameters `json:"elasticsearchConfig,omitempty" tf:"elasticsearch_config,omitempty"`
// AWS EventBridge settings. See Event Bridge Config
// +kubebuilder:validation:Optional
EventBridgeConfig []EventBridgeConfigParameters `json:"eventBridgeConfig,omitempty" tf:"event_bridge_config,omitempty"`
// HTTP settings. See HTTP Config
// +kubebuilder:validation:Optional
HTTPConfig []HTTPConfigParameters `json:"httpConfig,omitempty" tf:"http_config,omitempty"`
// AWS Lambda settings. See Lambda Config
// +kubebuilder:validation:Optional
LambdaConfig []LambdaConfigParameters `json:"lambdaConfig,omitempty" tf:"lambda_config,omitempty"`
// Amazon OpenSearch Service settings. See OpenSearch Service Config
// +kubebuilder:validation:Optional
OpensearchserviceConfig []OpensearchserviceConfigParameters `json:"opensearchserviceConfig,omitempty" tf:"opensearchservice_config,omitempty"`
// AWS region of the DynamoDB table. Defaults to current region.
// 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:"-"`
// AWS RDS settings. See Relational Database Config
// +kubebuilder:validation:Optional
RelationalDatabaseConfig []RelationalDatabaseConfigParameters `json:"relationalDatabaseConfig,omitempty" tf:"relational_database_config,omitempty"`
// IAM service role ARN for the data source. Required if type is specified as AWS_LAMBDA, AMAZON_DYNAMODB, AMAZON_ELASTICSEARCH, AMAZON_EVENTBRIDGE, or AMAZON_OPENSEARCH_SERVICE.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role
// +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor()
// +kubebuilder:validation:Optional
ServiceRoleArn *string `json:"serviceRoleArn,omitempty" tf:"service_role_arn,omitempty"`
// Reference to a Role in iam to populate serviceRoleArn.
// +kubebuilder:validation:Optional
ServiceRoleArnRef *v1.Reference `json:"serviceRoleArnRef,omitempty" tf:"-"`
// Selector for a Role in iam to populate serviceRoleArn.
// +kubebuilder:validation:Optional
ServiceRoleArnSelector *v1.Selector `json:"serviceRoleArnSelector,omitempty" tf:"-"`
// Type of the Data Source. Valid values: AWS_LAMBDA, AMAZON_DYNAMODB, AMAZON_ELASTICSEARCH, HTTP, NONE, RELATIONAL_DATABASE, AMAZON_EVENTBRIDGE, AMAZON_OPENSEARCH_SERVICE.
// +kubebuilder:validation:Optional
Type *string `json:"type,omitempty" tf:"type,omitempty"`
}
type DeltaSyncConfigInitParameters struct {
// The number of minutes that an Item is stored in the data source.
BaseTableTTL *float64 `json:"baseTableTtl,omitempty" tf:"base_table_ttl,omitempty"`
// The table name.
DeltaSyncTableName *string `json:"deltaSyncTableName,omitempty" tf:"delta_sync_table_name,omitempty"`
// The number of minutes that a Delta Sync log entry is stored in the Delta Sync table.
DeltaSyncTableTTL *float64 `json:"deltaSyncTableTtl,omitempty" tf:"delta_sync_table_ttl,omitempty"`
}
type DeltaSyncConfigObservation struct {
// The number of minutes that an Item is stored in the data source.
BaseTableTTL *float64 `json:"baseTableTtl,omitempty" tf:"base_table_ttl,omitempty"`
// The table name.
DeltaSyncTableName *string `json:"deltaSyncTableName,omitempty" tf:"delta_sync_table_name,omitempty"`
// The number of minutes that a Delta Sync log entry is stored in the Delta Sync table.
DeltaSyncTableTTL *float64 `json:"deltaSyncTableTtl,omitempty" tf:"delta_sync_table_ttl,omitempty"`
}
type DeltaSyncConfigParameters struct {
// The number of minutes that an Item is stored in the data source.
// +kubebuilder:validation:Optional
BaseTableTTL *float64 `json:"baseTableTtl,omitempty" tf:"base_table_ttl,omitempty"`
// The table name.
// +kubebuilder:validation:Optional
DeltaSyncTableName *string `json:"deltaSyncTableName" tf:"delta_sync_table_name,omitempty"`
// The number of minutes that a Delta Sync log entry is stored in the Delta Sync table.
// +kubebuilder:validation:Optional
DeltaSyncTableTTL *float64 `json:"deltaSyncTableTtl,omitempty" tf:"delta_sync_table_ttl,omitempty"`
}
type DynamodbConfigInitParameters struct {
// The DeltaSyncConfig for a versioned data source. See Delta Sync Config
DeltaSyncConfig []DeltaSyncConfigInitParameters `json:"deltaSyncConfig,omitempty" tf:"delta_sync_config,omitempty"`
// Name of the DynamoDB table.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/dynamodb/v1beta1.Table
TableName *string `json:"tableName,omitempty" tf:"table_name,omitempty"`
// Reference to a Table in dynamodb to populate tableName.
// +kubebuilder:validation:Optional
TableNameRef *v1.Reference `json:"tableNameRef,omitempty" tf:"-"`
// Selector for a Table in dynamodb to populate tableName.
// +kubebuilder:validation:Optional
TableNameSelector *v1.Selector `json:"tableNameSelector,omitempty" tf:"-"`
// Set to true to use Amazon Cognito credentials with this data source.
UseCallerCredentials *bool `json:"useCallerCredentials,omitempty" tf:"use_caller_credentials,omitempty"`
// Detects Conflict Detection and Resolution with this data source.
Versioned *bool `json:"versioned,omitempty" tf:"versioned,omitempty"`
}
type DynamodbConfigObservation struct {
// The DeltaSyncConfig for a versioned data source. See Delta Sync Config
DeltaSyncConfig []DeltaSyncConfigObservation `json:"deltaSyncConfig,omitempty" tf:"delta_sync_config,omitempty"`
// AWS region of the DynamoDB table. Defaults to current region.
Region *string `json:"region,omitempty" tf:"region,omitempty"`
// Name of the DynamoDB table.
TableName *string `json:"tableName,omitempty" tf:"table_name,omitempty"`
// Set to true to use Amazon Cognito credentials with this data source.
UseCallerCredentials *bool `json:"useCallerCredentials,omitempty" tf:"use_caller_credentials,omitempty"`
// Detects Conflict Detection and Resolution with this data source.
Versioned *bool `json:"versioned,omitempty" tf:"versioned,omitempty"`
}
type DynamodbConfigParameters struct {
// The DeltaSyncConfig for a versioned data source. See Delta Sync Config
// +kubebuilder:validation:Optional
DeltaSyncConfig []DeltaSyncConfigParameters `json:"deltaSyncConfig,omitempty" tf:"delta_sync_config,omitempty"`
// AWS region of the DynamoDB table. Defaults to current region.
// +kubebuilder:validation:Optional
Region *string `json:"region,omitempty" tf:"region,omitempty"`
// Name of the DynamoDB table.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/dynamodb/v1beta1.Table
// +kubebuilder:validation:Optional
TableName *string `json:"tableName,omitempty" tf:"table_name,omitempty"`
// Reference to a Table in dynamodb to populate tableName.
// +kubebuilder:validation:Optional
TableNameRef *v1.Reference `json:"tableNameRef,omitempty" tf:"-"`
// Selector for a Table in dynamodb to populate tableName.
// +kubebuilder:validation:Optional
TableNameSelector *v1.Selector `json:"tableNameSelector,omitempty" tf:"-"`
// Set to true to use Amazon Cognito credentials with this data source.
// +kubebuilder:validation:Optional
UseCallerCredentials *bool `json:"useCallerCredentials,omitempty" tf:"use_caller_credentials,omitempty"`
// Detects Conflict Detection and Resolution with this data source.
// +kubebuilder:validation:Optional
Versioned *bool `json:"versioned,omitempty" tf:"versioned,omitempty"`
}
type ElasticsearchConfigInitParameters struct {
// HTTP endpoint of the Elasticsearch domain.
Endpoint *string `json:"endpoint,omitempty" tf:"endpoint,omitempty"`
}
type ElasticsearchConfigObservation struct {
// HTTP endpoint of the Elasticsearch domain.
Endpoint *string `json:"endpoint,omitempty" tf:"endpoint,omitempty"`
// AWS region of the DynamoDB table. Defaults to current region.
Region *string `json:"region,omitempty" tf:"region,omitempty"`
}
type ElasticsearchConfigParameters struct {
// HTTP endpoint of the Elasticsearch domain.
// +kubebuilder:validation:Optional
Endpoint *string `json:"endpoint" tf:"endpoint,omitempty"`
// AWS region of the DynamoDB table. Defaults to current region.
// +kubebuilder:validation:Optional
Region *string `json:"region,omitempty" tf:"region,omitempty"`
}
type EventBridgeConfigInitParameters struct {
// ARN for the EventBridge bus.
EventBusArn *string `json:"eventBusArn,omitempty" tf:"event_bus_arn,omitempty"`
}
type EventBridgeConfigObservation struct {
// ARN for the EventBridge bus.
EventBusArn *string `json:"eventBusArn,omitempty" tf:"event_bus_arn,omitempty"`
}
type EventBridgeConfigParameters struct {
// ARN for the EventBridge bus.
// +kubebuilder:validation:Optional
EventBusArn *string `json:"eventBusArn" tf:"event_bus_arn,omitempty"`
}
type HTTPConfigInitParameters struct {
// Authorization configuration in case the HTTP endpoint requires authorization. See Authorization Config.
AuthorizationConfig []AuthorizationConfigInitParameters `json:"authorizationConfig,omitempty" tf:"authorization_config,omitempty"`
// HTTP endpoint of the Elasticsearch domain.
Endpoint *string `json:"endpoint,omitempty" tf:"endpoint,omitempty"`
}
type HTTPConfigObservation struct {
// Authorization configuration in case the HTTP endpoint requires authorization. See Authorization Config.
AuthorizationConfig []AuthorizationConfigObservation `json:"authorizationConfig,omitempty" tf:"authorization_config,omitempty"`
// HTTP endpoint of the Elasticsearch domain.
Endpoint *string `json:"endpoint,omitempty" tf:"endpoint,omitempty"`
}
type HTTPConfigParameters struct {
// Authorization configuration in case the HTTP endpoint requires authorization. See Authorization Config.
// +kubebuilder:validation:Optional
AuthorizationConfig []AuthorizationConfigParameters `json:"authorizationConfig,omitempty" tf:"authorization_config,omitempty"`
// HTTP endpoint of the Elasticsearch domain.
// +kubebuilder:validation:Optional
Endpoint *string `json:"endpoint" tf:"endpoint,omitempty"`
}
type HTTPEndpointConfigInitParameters struct {
// AWS secret store ARN for database credentials.
AwsSecretStoreArn *string `json:"awsSecretStoreArn,omitempty" tf:"aws_secret_store_arn,omitempty"`
// Amazon RDS cluster identifier.
DBClusterIdentifier *string `json:"dbClusterIdentifier,omitempty" tf:"db_cluster_identifier,omitempty"`
// Logical database name.
DatabaseName *string `json:"databaseName,omitempty" tf:"database_name,omitempty"`
// Logical schema name.
Schema *string `json:"schema,omitempty" tf:"schema,omitempty"`
}
type HTTPEndpointConfigObservation struct {
// AWS secret store ARN for database credentials.
AwsSecretStoreArn *string `json:"awsSecretStoreArn,omitempty" tf:"aws_secret_store_arn,omitempty"`
// Amazon RDS cluster identifier.
DBClusterIdentifier *string `json:"dbClusterIdentifier,omitempty" tf:"db_cluster_identifier,omitempty"`
// Logical database name.
DatabaseName *string `json:"databaseName,omitempty" tf:"database_name,omitempty"`
// AWS region of the DynamoDB table. Defaults to current region.
Region *string `json:"region,omitempty" tf:"region,omitempty"`
// Logical schema name.
Schema *string `json:"schema,omitempty" tf:"schema,omitempty"`
}
type HTTPEndpointConfigParameters struct {
// AWS secret store ARN for database credentials.
// +kubebuilder:validation:Optional
AwsSecretStoreArn *string `json:"awsSecretStoreArn" tf:"aws_secret_store_arn,omitempty"`
// Amazon RDS cluster identifier.
// +kubebuilder:validation:Optional
DBClusterIdentifier *string `json:"dbClusterIdentifier" tf:"db_cluster_identifier,omitempty"`
// Logical database name.
// +kubebuilder:validation:Optional
DatabaseName *string `json:"databaseName,omitempty" tf:"database_name,omitempty"`
// AWS region of the DynamoDB table. Defaults to current region.
// +kubebuilder:validation:Optional
Region *string `json:"region,omitempty" tf:"region,omitempty"`
// Logical schema name.
// +kubebuilder:validation:Optional
Schema *string `json:"schema,omitempty" tf:"schema,omitempty"`
}
type LambdaConfigInitParameters struct {
// ARN for the Lambda function.
FunctionArn *string `json:"functionArn,omitempty" tf:"function_arn,omitempty"`
}
type LambdaConfigObservation struct {
// ARN for the Lambda function.
FunctionArn *string `json:"functionArn,omitempty" tf:"function_arn,omitempty"`
}
type LambdaConfigParameters struct {
// ARN for the Lambda function.
// +kubebuilder:validation:Optional
FunctionArn *string `json:"functionArn" tf:"function_arn,omitempty"`
}
type OpensearchserviceConfigInitParameters struct {
// HTTP endpoint of the Elasticsearch domain.
Endpoint *string `json:"endpoint,omitempty" tf:"endpoint,omitempty"`
}
type OpensearchserviceConfigObservation struct {
// HTTP endpoint of the Elasticsearch domain.
Endpoint *string `json:"endpoint,omitempty" tf:"endpoint,omitempty"`
// AWS region of the DynamoDB table. Defaults to current region.
Region *string `json:"region,omitempty" tf:"region,omitempty"`
}
type OpensearchserviceConfigParameters struct {
// HTTP endpoint of the Elasticsearch domain.
// +kubebuilder:validation:Optional
Endpoint *string `json:"endpoint" tf:"endpoint,omitempty"`
// AWS region of the DynamoDB table. Defaults to current region.
// +kubebuilder:validation:Optional
Region *string `json:"region,omitempty" tf:"region,omitempty"`
}
type RelationalDatabaseConfigInitParameters struct {
// Amazon RDS HTTP endpoint configuration. See HTTP Endpoint Config.
HTTPEndpointConfig []HTTPEndpointConfigInitParameters `json:"httpEndpointConfig,omitempty" tf:"http_endpoint_config,omitempty"`
// Source type for the relational database. Valid values: RDS_HTTP_ENDPOINT.
SourceType *string `json:"sourceType,omitempty" tf:"source_type,omitempty"`
}
type RelationalDatabaseConfigObservation struct {
// Amazon RDS HTTP endpoint configuration. See HTTP Endpoint Config.
HTTPEndpointConfig []HTTPEndpointConfigObservation `json:"httpEndpointConfig,omitempty" tf:"http_endpoint_config,omitempty"`
// Source type for the relational database. Valid values: RDS_HTTP_ENDPOINT.
SourceType *string `json:"sourceType,omitempty" tf:"source_type,omitempty"`
}
type RelationalDatabaseConfigParameters struct {
// Amazon RDS HTTP endpoint configuration. See HTTP Endpoint Config.
// +kubebuilder:validation:Optional
HTTPEndpointConfig []HTTPEndpointConfigParameters `json:"httpEndpointConfig,omitempty" tf:"http_endpoint_config,omitempty"`
// Source type for the relational database. Valid values: RDS_HTTP_ENDPOINT.
// +kubebuilder:validation:Optional
SourceType *string `json:"sourceType,omitempty" tf:"source_type,omitempty"`
}
// DatasourceSpec defines the desired state of Datasource
type DatasourceSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider DatasourceParameters `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 DatasourceInitParameters `json:"initProvider,omitempty"`
}
// DatasourceStatus defines the observed state of Datasource.
type DatasourceStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider DatasourceObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// +kubebuilder:storageversion
// Datasource is the Schema for the Datasources API. Provides an AppSync Data Source.
// +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 Datasource 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 DatasourceSpec `json:"spec"`
Status DatasourceStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// DatasourceList contains a list of Datasources
type DatasourceList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Datasource `json:"items"`
}
// Repository type metadata.
var (
Datasource_Kind = "Datasource"
Datasource_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Datasource_Kind}.String()
Datasource_KindAPIVersion = Datasource_Kind + "." + CRDGroupVersion.String()
Datasource_GroupVersionKind = CRDGroupVersion.WithKind(Datasource_Kind)
)
func init() {
SchemeBuilder.Register(&Datasource{}, &DatasourceList{})
}