This repository has been archived by the owner on Dec 15, 2022. It is now read-only.
generated from crossplane/provider-template
/
zz_broker_types.go
executable file
·278 lines (196 loc) · 9.41 KB
/
zz_broker_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
/*
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 BrokerObservation struct {
Arn *string `json:"arn,omitempty" tf:"arn,omitempty"`
ID *string `json:"id,omitempty" tf:"id,omitempty"`
Instances []InstancesObservation `json:"instances,omitempty" tf:"instances,omitempty"`
TagsAll map[string]*string `json:"tagsAll,omitempty" tf:"tags_all,omitempty"`
}
type BrokerParameters struct {
// +kubebuilder:validation:Optional
ApplyImmediately *bool `json:"applyImmediately,omitempty" tf:"apply_immediately,omitempty"`
// +kubebuilder:validation:Optional
AuthenticationStrategy *string `json:"authenticationStrategy,omitempty" tf:"authentication_strategy,omitempty"`
// +kubebuilder:validation:Optional
AutoMinorVersionUpgrade *bool `json:"autoMinorVersionUpgrade,omitempty" tf:"auto_minor_version_upgrade,omitempty"`
// +kubebuilder:validation:Required
BrokerName *string `json:"brokerName" tf:"broker_name,omitempty"`
// +kubebuilder:validation:Optional
Configuration []ConfigurationParameters `json:"configuration,omitempty" tf:"configuration,omitempty"`
// +kubebuilder:validation:Optional
DeploymentMode *string `json:"deploymentMode,omitempty" tf:"deployment_mode,omitempty"`
// +kubebuilder:validation:Optional
EncryptionOptions []EncryptionOptionsParameters `json:"encryptionOptions,omitempty" tf:"encryption_options,omitempty"`
// +kubebuilder:validation:Required
EngineType *string `json:"engineType" tf:"engine_type,omitempty"`
// +kubebuilder:validation:Required
EngineVersion *string `json:"engineVersion" tf:"engine_version,omitempty"`
// +kubebuilder:validation:Required
HostInstanceType *string `json:"hostInstanceType" tf:"host_instance_type,omitempty"`
// +kubebuilder:validation:Optional
LdapServerMetadata []LdapServerMetadataParameters `json:"ldapServerMetadata,omitempty" tf:"ldap_server_metadata,omitempty"`
// +kubebuilder:validation:Optional
Logs []LogsParameters `json:"logs,omitempty" tf:"logs,omitempty"`
// +kubebuilder:validation:Optional
MaintenanceWindowStartTime []MaintenanceWindowStartTimeParameters `json:"maintenanceWindowStartTime,omitempty" tf:"maintenance_window_start_time,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
SecurityGroups []*string `json:"securityGroups,omitempty" tf:"security_groups,omitempty"`
// +kubebuilder:validation:Optional
StorageType *string `json:"storageType,omitempty" tf:"storage_type,omitempty"`
// +kubebuilder:validation:Optional
SubnetIdRefs []v1.Reference `json:"subnetIdRefs,omitempty" tf:"-"`
// +kubebuilder:validation:Optional
SubnetIdSelector *v1.Selector `json:"subnetIdSelector,omitempty" tf:"-"`
// +crossplane:generate:reference:type=github.com/crossplane-contrib/provider-jet-aws/apis/ec2/v1alpha2.Subnet
// +crossplane:generate:reference:refFieldName=SubnetIdRefs
// +crossplane:generate:reference:selectorFieldName=SubnetIdSelector
// +kubebuilder:validation:Optional
SubnetIds []*string `json:"subnetIds,omitempty" tf:"subnet_ids,omitempty"`
// +kubebuilder:validation:Optional
Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
// +kubebuilder:validation:Required
User []UserParameters `json:"user" tf:"user,omitempty"`
}
type ConfigurationObservation struct {
}
type ConfigurationParameters struct {
// +kubebuilder:validation:Optional
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// +kubebuilder:validation:Optional
Revision *float64 `json:"revision,omitempty" tf:"revision,omitempty"`
}
type EncryptionOptionsObservation struct {
}
type EncryptionOptionsParameters struct {
// +kubebuilder:validation:Optional
KMSKeyID *string `json:"kmsKeyId,omitempty" tf:"kms_key_id,omitempty"`
// +kubebuilder:validation:Optional
UseAwsOwnedKey *bool `json:"useAwsOwnedKey,omitempty" tf:"use_aws_owned_key,omitempty"`
}
type InstancesObservation struct {
ConsoleURL *string `json:"consoleUrl,omitempty" tf:"console_url,omitempty"`
Endpoints []*string `json:"endpoints,omitempty" tf:"endpoints,omitempty"`
IPAddress *string `json:"ipAddress,omitempty" tf:"ip_address,omitempty"`
}
type InstancesParameters struct {
}
type LdapServerMetadataObservation struct {
}
type LdapServerMetadataParameters struct {
// +kubebuilder:validation:Optional
Hosts []*string `json:"hosts,omitempty" tf:"hosts,omitempty"`
// +kubebuilder:validation:Optional
RoleBase *string `json:"roleBase,omitempty" tf:"role_base,omitempty"`
// +kubebuilder:validation:Optional
RoleName *string `json:"roleName,omitempty" tf:"role_name,omitempty"`
// +kubebuilder:validation:Optional
RoleSearchMatching *string `json:"roleSearchMatching,omitempty" tf:"role_search_matching,omitempty"`
// +kubebuilder:validation:Optional
RoleSearchSubtree *bool `json:"roleSearchSubtree,omitempty" tf:"role_search_subtree,omitempty"`
// +kubebuilder:validation:Optional
ServiceAccountPasswordSecretRef *v1.SecretKeySelector `json:"serviceAccountPasswordSecretRef,omitempty" tf:"-"`
// +kubebuilder:validation:Optional
ServiceAccountUsername *string `json:"serviceAccountUsername,omitempty" tf:"service_account_username,omitempty"`
// +kubebuilder:validation:Optional
UserBase *string `json:"userBase,omitempty" tf:"user_base,omitempty"`
// +kubebuilder:validation:Optional
UserRoleName *string `json:"userRoleName,omitempty" tf:"user_role_name,omitempty"`
// +kubebuilder:validation:Optional
UserSearchMatching *string `json:"userSearchMatching,omitempty" tf:"user_search_matching,omitempty"`
// +kubebuilder:validation:Optional
UserSearchSubtree *bool `json:"userSearchSubtree,omitempty" tf:"user_search_subtree,omitempty"`
}
type LogsObservation struct {
}
type LogsParameters struct {
// +kubebuilder:validation:Optional
Audit *string `json:"audit,omitempty" tf:"audit,omitempty"`
// +kubebuilder:validation:Optional
General *bool `json:"general,omitempty" tf:"general,omitempty"`
}
type MaintenanceWindowStartTimeObservation struct {
}
type MaintenanceWindowStartTimeParameters struct {
// +kubebuilder:validation:Required
DayOfWeek *string `json:"dayOfWeek" tf:"day_of_week,omitempty"`
// +kubebuilder:validation:Required
TimeOfDay *string `json:"timeOfDay" tf:"time_of_day,omitempty"`
// +kubebuilder:validation:Required
TimeZone *string `json:"timeZone" tf:"time_zone,omitempty"`
}
type UserObservation struct {
}
type UserParameters struct {
// +kubebuilder:validation:Optional
ConsoleAccess *bool `json:"consoleAccess,omitempty" tf:"console_access,omitempty"`
// +kubebuilder:validation:Optional
Groups []*string `json:"groups,omitempty" tf:"groups,omitempty"`
// +kubebuilder:validation:Required
PasswordSecretRef v1.SecretKeySelector `json:"passwordSecretRef" tf:"-"`
// +kubebuilder:validation:Required
Username *string `json:"username" tf:"username,omitempty"`
}
// BrokerSpec defines the desired state of Broker
type BrokerSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider BrokerParameters `json:"forProvider"`
}
// BrokerStatus defines the observed state of Broker.
type BrokerStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider BrokerObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// Broker is the Schema for the Brokers 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 Broker struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec BrokerSpec `json:"spec"`
Status BrokerStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// BrokerList contains a list of Brokers
type BrokerList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Broker `json:"items"`
}
// Repository type metadata.
var (
Broker_Kind = "Broker"
Broker_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Broker_Kind}.String()
Broker_KindAPIVersion = Broker_Kind + "." + CRDGroupVersion.String()
Broker_GroupVersionKind = CRDGroupVersion.WithKind(Broker_Kind)
)
func init() {
SchemeBuilder.Register(&Broker{}, &BrokerList{})
}