This repository has been archived by the owner on Dec 15, 2022. It is now read-only.
generated from crossplane/provider-template
-
Notifications
You must be signed in to change notification settings - Fork 30
/
zz_instance_types.go
executable file
·353 lines (247 loc) · 14.4 KB
/
zz_instance_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
/*
Copyright 2021 The Crossplane Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// Code generated by terrajet. DO NOT EDIT.
package v1alpha2
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 InstanceObservation struct {
Address *string `json:"address,omitempty" tf:"address,omitempty"`
Arn *string `json:"arn,omitempty" tf:"arn,omitempty"`
Endpoint *string `json:"endpoint,omitempty" tf:"endpoint,omitempty"`
HostedZoneID *string `json:"hostedZoneId,omitempty" tf:"hosted_zone_id,omitempty"`
ID *string `json:"id,omitempty" tf:"id,omitempty"`
LatestRestorableTime *string `json:"latestRestorableTime,omitempty" tf:"latest_restorable_time,omitempty"`
Replicas []*string `json:"replicas,omitempty" tf:"replicas,omitempty"`
ResourceID *string `json:"resourceId,omitempty" tf:"resource_id,omitempty"`
Status *string `json:"status,omitempty" tf:"status,omitempty"`
TagsAll map[string]*string `json:"tagsAll,omitempty" tf:"tags_all,omitempty"`
}
type InstanceParameters struct {
// +kubebuilder:validation:Optional
AllocatedStorage *int64 `json:"allocatedStorage,omitempty" tf:"allocated_storage,omitempty"`
// +kubebuilder:validation:Optional
AllowMajorVersionUpgrade *bool `json:"allowMajorVersionUpgrade,omitempty" tf:"allow_major_version_upgrade,omitempty"`
// +kubebuilder:validation:Optional
ApplyImmediately *bool `json:"applyImmediately,omitempty" tf:"apply_immediately,omitempty"`
// +kubebuilder:validation:Optional
AutoMinorVersionUpgrade *bool `json:"autoMinorVersionUpgrade,omitempty" tf:"auto_minor_version_upgrade,omitempty"`
// +kubebuilder:validation:Optional
AvailabilityZone *string `json:"availabilityZone,omitempty" tf:"availability_zone,omitempty"`
// +kubebuilder:validation:Optional
BackupRetentionPeriod *int64 `json:"backupRetentionPeriod,omitempty" tf:"backup_retention_period,omitempty"`
// +kubebuilder:validation:Optional
BackupWindow *string `json:"backupWindow,omitempty" tf:"backup_window,omitempty"`
// +kubebuilder:validation:Optional
CACertIdentifier *string `json:"caCertIdentifier,omitempty" tf:"ca_cert_identifier,omitempty"`
// +kubebuilder:validation:Optional
CharacterSetName *string `json:"characterSetName,omitempty" tf:"character_set_name,omitempty"`
// +kubebuilder:validation:Optional
CopyTagsToSnapshot *bool `json:"copyTagsToSnapshot,omitempty" tf:"copy_tags_to_snapshot,omitempty"`
// +kubebuilder:validation:Optional
CustomerOwnedIPEnabled *bool `json:"customerOwnedIpEnabled,omitempty" tf:"customer_owned_ip_enabled,omitempty"`
// +kubebuilder:validation:Optional
DBSubnetGroupName *string `json:"dbSubnetGroupName,omitempty" tf:"db_subnet_group_name,omitempty"`
// +kubebuilder:validation:Optional
DeleteAutomatedBackups *bool `json:"deleteAutomatedBackups,omitempty" tf:"delete_automated_backups,omitempty"`
// +kubebuilder:validation:Optional
DeletionProtection *bool `json:"deletionProtection,omitempty" tf:"deletion_protection,omitempty"`
// +kubebuilder:validation:Optional
Domain *string `json:"domain,omitempty" tf:"domain,omitempty"`
// +kubebuilder:validation:Optional
DomainIAMRoleName *string `json:"domainIamRoleName,omitempty" tf:"domain_iam_role_name,omitempty"`
// +kubebuilder:validation:Optional
EnabledCloudwatchLogsExports []*string `json:"enabledCloudwatchLogsExports,omitempty" tf:"enabled_cloudwatch_logs_exports,omitempty"`
// +kubebuilder:validation:Optional
Engine *string `json:"engine,omitempty" tf:"engine,omitempty"`
// +kubebuilder:validation:Optional
EngineVersion *string `json:"engineVersion,omitempty" tf:"engine_version,omitempty"`
// +kubebuilder:validation:Optional
FinalSnapshotIdentifier *string `json:"finalSnapshotIdentifier,omitempty" tf:"final_snapshot_identifier,omitempty"`
// +kubebuilder:validation:Optional
IAMDatabaseAuthenticationEnabled *bool `json:"iamDatabaseAuthenticationEnabled,omitempty" tf:"iam_database_authentication_enabled,omitempty"`
// +kubebuilder:validation:Required
InstanceClass *string `json:"instanceClass" tf:"instance_class,omitempty"`
// +kubebuilder:validation:Optional
Iops *int64 `json:"iops,omitempty" tf:"iops,omitempty"`
// +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-jet-aws/apis/kms/v1alpha2.Key
// +kubebuilder:validation:Optional
KMSKeyID *string `json:"kmsKeyId,omitempty" tf:"kms_key_id,omitempty"`
// +kubebuilder:validation:Optional
KMSKeyIDRef *v1.Reference `json:"kmsKeyIdRef,omitempty" tf:"-"`
// +kubebuilder:validation:Optional
KMSKeyIDSelector *v1.Selector `json:"kmsKeyIdSelector,omitempty" tf:"-"`
// +kubebuilder:validation:Optional
LicenseModel *string `json:"licenseModel,omitempty" tf:"license_model,omitempty"`
// +kubebuilder:validation:Optional
MaintenanceWindow *string `json:"maintenanceWindow,omitempty" tf:"maintenance_window,omitempty"`
// +kubebuilder:validation:Optional
MaxAllocatedStorage *int64 `json:"maxAllocatedStorage,omitempty" tf:"max_allocated_storage,omitempty"`
// +kubebuilder:validation:Optional
MonitoringInterval *int64 `json:"monitoringInterval,omitempty" tf:"monitoring_interval,omitempty"`
// +kubebuilder:validation:Optional
MonitoringRoleArn *string `json:"monitoringRoleArn,omitempty" tf:"monitoring_role_arn,omitempty"`
// +kubebuilder:validation:Optional
MultiAz *bool `json:"multiAz,omitempty" tf:"multi_az,omitempty"`
// +kubebuilder:validation:Optional
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// +kubebuilder:validation:Optional
NcharCharacterSetName *string `json:"ncharCharacterSetName,omitempty" tf:"nchar_character_set_name,omitempty"`
// +kubebuilder:validation:Optional
OptionGroupName *string `json:"optionGroupName,omitempty" tf:"option_group_name,omitempty"`
// +crossplane:generate:reference:type=ParameterGroup
// +kubebuilder:validation:Optional
ParameterGroupName *string `json:"parameterGroupName,omitempty" tf:"parameter_group_name,omitempty"`
// +kubebuilder:validation:Optional
ParameterGroupNameRef *v1.Reference `json:"parameterGroupNameRef,omitempty" tf:"-"`
// +kubebuilder:validation:Optional
ParameterGroupNameSelector *v1.Selector `json:"parameterGroupNameSelector,omitempty" tf:"-"`
// +kubebuilder:validation:Optional
PasswordSecretRef *v1.SecretKeySelector `json:"passwordSecretRef,omitempty" tf:"-"`
// +kubebuilder:validation:Optional
PerformanceInsightsEnabled *bool `json:"performanceInsightsEnabled,omitempty" tf:"performance_insights_enabled,omitempty"`
// +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-jet-aws/apis/kms/v1alpha2.Key
// +kubebuilder:validation:Optional
PerformanceInsightsKMSKeyID *string `json:"performanceInsightsKmsKeyId,omitempty" tf:"performance_insights_kms_key_id,omitempty"`
// +kubebuilder:validation:Optional
PerformanceInsightsKMSKeyIDRef *v1.Reference `json:"performanceInsightsKmsKeyIdRef,omitempty" tf:"-"`
// +kubebuilder:validation:Optional
PerformanceInsightsKMSKeyIDSelector *v1.Selector `json:"performanceInsightsKmsKeyIdSelector,omitempty" tf:"-"`
// +kubebuilder:validation:Optional
PerformanceInsightsRetentionPeriod *int64 `json:"performanceInsightsRetentionPeriod,omitempty" tf:"performance_insights_retention_period,omitempty"`
// +kubebuilder:validation:Optional
Port *int64 `json:"port,omitempty" tf:"port,omitempty"`
// +kubebuilder:validation:Optional
PubliclyAccessible *bool `json:"publiclyAccessible,omitempty" tf:"publicly_accessible,omitempty"`
// Region is the region you'd like your resource to be created in.
// +terrajet:crd:field:TFTag=-
// +kubebuilder:validation:Required
Region *string `json:"region" tf:"-"`
// +kubebuilder:validation:Optional
ReplicateSourceDB *string `json:"replicateSourceDb,omitempty" tf:"replicate_source_db,omitempty"`
// +kubebuilder:validation:Optional
RestoreToPointInTime []RestoreToPointInTimeParameters `json:"restoreToPointInTime,omitempty" tf:"restore_to_point_in_time,omitempty"`
// +kubebuilder:validation:Optional
S3Import []S3ImportParameters `json:"s3Import,omitempty" tf:"s3_import,omitempty"`
// +kubebuilder:validation:Optional
SecurityGroupNameRefs []v1.Reference `json:"securityGroupNameRefs,omitempty" tf:"-"`
// +kubebuilder:validation:Optional
SecurityGroupNameSelector *v1.Selector `json:"securityGroupNameSelector,omitempty" tf:"-"`
// +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-jet-aws/apis/ec2/v1alpha2.SecurityGroup
// +crossplane:generate:reference:refFieldName=SecurityGroupNameRefs
// +crossplane:generate:reference:selectorFieldName=SecurityGroupNameSelector
// +kubebuilder:validation:Optional
SecurityGroupNames []*string `json:"securityGroupNames,omitempty" tf:"security_group_names,omitempty"`
// +kubebuilder:validation:Optional
SkipFinalSnapshot *bool `json:"skipFinalSnapshot,omitempty" tf:"skip_final_snapshot,omitempty"`
// +kubebuilder:validation:Optional
SnapshotIdentifier *string `json:"snapshotIdentifier,omitempty" tf:"snapshot_identifier,omitempty"`
// +kubebuilder:validation:Optional
StorageEncrypted *bool `json:"storageEncrypted,omitempty" tf:"storage_encrypted,omitempty"`
// +kubebuilder:validation:Optional
StorageType *string `json:"storageType,omitempty" tf:"storage_type,omitempty"`
// +kubebuilder:validation:Optional
Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
// +kubebuilder:validation:Optional
Timezone *string `json:"timezone,omitempty" tf:"timezone,omitempty"`
// +kubebuilder:validation:Optional
Username *string `json:"username,omitempty" tf:"username,omitempty"`
// +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-jet-aws/apis/ec2/v1alpha2.SecurityGroup
// +crossplane:generate:reference:refFieldName=VpcSecurityGroupIdRefs
// +crossplane:generate:reference:selectorFieldName=VpcSecurityGroupIdSelector
// +kubebuilder:validation:Optional
VPCSecurityGroupIds []*string `json:"vpcSecurityGroupIds,omitempty" tf:"vpc_security_group_ids,omitempty"`
// +kubebuilder:validation:Optional
VpcSecurityGroupIdRefs []v1.Reference `json:"vpcSecurityGroupIdRefs,omitempty" tf:"-"`
// +kubebuilder:validation:Optional
VpcSecurityGroupIdSelector *v1.Selector `json:"vpcSecurityGroupIdSelector,omitempty" tf:"-"`
}
type RestoreToPointInTimeObservation struct {
}
type RestoreToPointInTimeParameters struct {
// +kubebuilder:validation:Optional
RestoreTime *string `json:"restoreTime,omitempty" tf:"restore_time,omitempty"`
// +crossplane:generate:reference:type=Instance
// +kubebuilder:validation:Optional
SourceDBInstanceIdentifier *string `json:"sourceDbInstanceIdentifier,omitempty" tf:"source_db_instance_identifier,omitempty"`
// +kubebuilder:validation:Optional
SourceDBInstanceIdentifierRef *v1.Reference `json:"sourceDbInstanceIdentifierRef,omitempty" tf:"-"`
// +kubebuilder:validation:Optional
SourceDBInstanceIdentifierSelector *v1.Selector `json:"sourceDbInstanceIdentifierSelector,omitempty" tf:"-"`
// +kubebuilder:validation:Optional
SourceDbiResourceID *string `json:"sourceDbiResourceId,omitempty" tf:"source_dbi_resource_id,omitempty"`
// +kubebuilder:validation:Optional
UseLatestRestorableTime *bool `json:"useLatestRestorableTime,omitempty" tf:"use_latest_restorable_time,omitempty"`
}
type S3ImportObservation struct {
}
type S3ImportParameters struct {
// +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-jet-aws/apis/s3/v1alpha2.Bucket
// +kubebuilder:validation:Optional
BucketName *string `json:"bucketName,omitempty" tf:"bucket_name,omitempty"`
// +kubebuilder:validation:Optional
BucketNameRef *v1.Reference `json:"bucketNameRef,omitempty" tf:"-"`
// +kubebuilder:validation:Optional
BucketNameSelector *v1.Selector `json:"bucketNameSelector,omitempty" tf:"-"`
// +kubebuilder:validation:Optional
BucketPrefix *string `json:"bucketPrefix,omitempty" tf:"bucket_prefix,omitempty"`
// +kubebuilder:validation:Required
IngestionRole *string `json:"ingestionRole" tf:"ingestion_role,omitempty"`
// +kubebuilder:validation:Required
SourceEngine *string `json:"sourceEngine" tf:"source_engine,omitempty"`
// +kubebuilder:validation:Required
SourceEngineVersion *string `json:"sourceEngineVersion" tf:"source_engine_version,omitempty"`
}
// InstanceSpec defines the desired state of Instance
type InstanceSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider InstanceParameters `json:"forProvider"`
}
// InstanceStatus defines the observed state of Instance.
type InstanceStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider InstanceObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// Instance is the Schema for the Instances API
// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status"
// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].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:subresource:status
// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,awsjet}
type Instance struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec InstanceSpec `json:"spec"`
Status InstanceStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// InstanceList contains a list of Instances
type InstanceList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Instance `json:"items"`
}
// Repository type metadata.
var (
Instance_Kind = "Instance"
Instance_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Instance_Kind}.String()
Instance_KindAPIVersion = Instance_Kind + "." + CRDGroupVersion.String()
Instance_GroupVersionKind = CRDGroupVersion.WithKind(Instance_Kind)
)
func init() {
SchemeBuilder.Register(&Instance{}, &InstanceList{})
}