-
Notifications
You must be signed in to change notification settings - Fork 113
/
zz_domain_types.go
executable file
·323 lines (235 loc) · 14.6 KB
/
zz_domain_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
// SPDX-FileCopyrightText: 2023 The Crossplane Authors <https://crossplane.io>
//
// SPDX-License-Identifier: Apache-2.0
/*
Copyright 2022 Upbound Inc.
*/
// 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 DomainInitParameters struct {
// Domain endpoint options. Documented below.
EndpointOptions []EndpointOptionsInitParameters `json:"endpointOptions,omitempty" tf:"endpoint_options,omitempty"`
// The index fields for documents added to the domain. Documented below.
IndexField []IndexFieldInitParameters `json:"indexField,omitempty" tf:"index_field,omitempty"`
// Whether or not to maintain extra instances for the domain in a second Availability Zone to ensure high availability.
MultiAz *bool `json:"multiAz,omitempty" tf:"multi_az,omitempty"`
// Domain scaling parameters. Documented below.
ScalingParameters []ScalingParametersInitParameters `json:"scalingParameters,omitempty" tf:"scaling_parameters,omitempty"`
}
type DomainObservation struct {
// The domain's ARN.
Arn *string `json:"arn,omitempty" tf:"arn,omitempty"`
// The service endpoint for updating documents in a search domain.
DocumentServiceEndpoint *string `json:"documentServiceEndpoint,omitempty" tf:"document_service_endpoint,omitempty"`
// An internally generated unique identifier for the domain.
DomainID *string `json:"domainId,omitempty" tf:"domain_id,omitempty"`
// Domain endpoint options. Documented below.
EndpointOptions []EndpointOptionsObservation `json:"endpointOptions,omitempty" tf:"endpoint_options,omitempty"`
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// The index fields for documents added to the domain. Documented below.
IndexField []IndexFieldObservation `json:"indexField,omitempty" tf:"index_field,omitempty"`
// Whether or not to maintain extra instances for the domain in a second Availability Zone to ensure high availability.
MultiAz *bool `json:"multiAz,omitempty" tf:"multi_az,omitempty"`
// Domain scaling parameters. Documented below.
ScalingParameters []ScalingParametersObservation `json:"scalingParameters,omitempty" tf:"scaling_parameters,omitempty"`
// The service endpoint for requesting search results from a search domain.
SearchServiceEndpoint *string `json:"searchServiceEndpoint,omitempty" tf:"search_service_endpoint,omitempty"`
}
type DomainParameters struct {
// Domain endpoint options. Documented below.
// +kubebuilder:validation:Optional
EndpointOptions []EndpointOptionsParameters `json:"endpointOptions,omitempty" tf:"endpoint_options,omitempty"`
// The index fields for documents added to the domain. Documented below.
// +kubebuilder:validation:Optional
IndexField []IndexFieldParameters `json:"indexField,omitempty" tf:"index_field,omitempty"`
// Whether or not to maintain extra instances for the domain in a second Availability Zone to ensure high availability.
// +kubebuilder:validation:Optional
MultiAz *bool `json:"multiAz,omitempty" tf:"multi_az,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:"-"`
// Domain scaling parameters. Documented below.
// +kubebuilder:validation:Optional
ScalingParameters []ScalingParametersParameters `json:"scalingParameters,omitempty" tf:"scaling_parameters,omitempty"`
}
type EndpointOptionsInitParameters struct {
// Enables or disables the requirement that all requests to the domain arrive over HTTPS.
EnforceHTTPS *bool `json:"enforceHttps,omitempty" tf:"enforce_https,omitempty"`
// The minimum required TLS version. See the AWS documentation for valid values.
TLSSecurityPolicy *string `json:"tlsSecurityPolicy,omitempty" tf:"tls_security_policy,omitempty"`
}
type EndpointOptionsObservation struct {
// Enables or disables the requirement that all requests to the domain arrive over HTTPS.
EnforceHTTPS *bool `json:"enforceHttps,omitempty" tf:"enforce_https,omitempty"`
// The minimum required TLS version. See the AWS documentation for valid values.
TLSSecurityPolicy *string `json:"tlsSecurityPolicy,omitempty" tf:"tls_security_policy,omitempty"`
}
type EndpointOptionsParameters struct {
// Enables or disables the requirement that all requests to the domain arrive over HTTPS.
// +kubebuilder:validation:Optional
EnforceHTTPS *bool `json:"enforceHttps,omitempty" tf:"enforce_https,omitempty"`
// The minimum required TLS version. See the AWS documentation for valid values.
// +kubebuilder:validation:Optional
TLSSecurityPolicy *string `json:"tlsSecurityPolicy,omitempty" tf:"tls_security_policy,omitempty"`
}
type IndexFieldInitParameters struct {
// The analysis scheme you want to use for a text field. The analysis scheme specifies the language-specific text processing options that are used during indexing.
AnalysisScheme *string `json:"analysisScheme,omitempty" tf:"analysis_scheme,omitempty"`
// The default value for the field. This value is used when no value is specified for the field in the document data.
DefaultValue *string `json:"defaultValue,omitempty" tf:"default_value,omitempty"`
// You can get facet information by enabling this.
Facet *bool `json:"facet,omitempty" tf:"facet,omitempty"`
// You can highlight information.
Highlight *bool `json:"highlight,omitempty" tf:"highlight,omitempty"`
// The name of the CloudSearch domain.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// You can enable returning the value of all searchable fields.
Return *bool `json:"return,omitempty" tf:"return,omitempty"`
// You can set whether this index should be searchable or not.
Search *bool `json:"search,omitempty" tf:"search,omitempty"`
// You can enable the property to be sortable.
Sort *bool `json:"sort,omitempty" tf:"sort,omitempty"`
// A comma-separated list of source fields to map to the field. Specifying a source field copies data from one field to another, enabling you to use the same source data in different ways by configuring different options for the fields.
SourceFields *string `json:"sourceFields,omitempty" tf:"source_fields,omitempty"`
// The field type. Valid values: date, date-array, double, double-array, int, int-array, literal, literal-array, text, text-array.
Type *string `json:"type,omitempty" tf:"type,omitempty"`
}
type IndexFieldObservation struct {
// The analysis scheme you want to use for a text field. The analysis scheme specifies the language-specific text processing options that are used during indexing.
AnalysisScheme *string `json:"analysisScheme,omitempty" tf:"analysis_scheme,omitempty"`
// The default value for the field. This value is used when no value is specified for the field in the document data.
DefaultValue *string `json:"defaultValue,omitempty" tf:"default_value,omitempty"`
// You can get facet information by enabling this.
Facet *bool `json:"facet,omitempty" tf:"facet,omitempty"`
// You can highlight information.
Highlight *bool `json:"highlight,omitempty" tf:"highlight,omitempty"`
// The name of the CloudSearch domain.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// You can enable returning the value of all searchable fields.
Return *bool `json:"return,omitempty" tf:"return,omitempty"`
// You can set whether this index should be searchable or not.
Search *bool `json:"search,omitempty" tf:"search,omitempty"`
// You can enable the property to be sortable.
Sort *bool `json:"sort,omitempty" tf:"sort,omitempty"`
// A comma-separated list of source fields to map to the field. Specifying a source field copies data from one field to another, enabling you to use the same source data in different ways by configuring different options for the fields.
SourceFields *string `json:"sourceFields,omitempty" tf:"source_fields,omitempty"`
// The field type. Valid values: date, date-array, double, double-array, int, int-array, literal, literal-array, text, text-array.
Type *string `json:"type,omitempty" tf:"type,omitempty"`
}
type IndexFieldParameters struct {
// The analysis scheme you want to use for a text field. The analysis scheme specifies the language-specific text processing options that are used during indexing.
// +kubebuilder:validation:Optional
AnalysisScheme *string `json:"analysisScheme,omitempty" tf:"analysis_scheme,omitempty"`
// The default value for the field. This value is used when no value is specified for the field in the document data.
// +kubebuilder:validation:Optional
DefaultValue *string `json:"defaultValue,omitempty" tf:"default_value,omitempty"`
// You can get facet information by enabling this.
// +kubebuilder:validation:Optional
Facet *bool `json:"facet,omitempty" tf:"facet,omitempty"`
// You can highlight information.
// +kubebuilder:validation:Optional
Highlight *bool `json:"highlight,omitempty" tf:"highlight,omitempty"`
// The name of the CloudSearch domain.
// +kubebuilder:validation:Optional
Name *string `json:"name" tf:"name,omitempty"`
// You can enable returning the value of all searchable fields.
// +kubebuilder:validation:Optional
Return *bool `json:"return,omitempty" tf:"return,omitempty"`
// You can set whether this index should be searchable or not.
// +kubebuilder:validation:Optional
Search *bool `json:"search,omitempty" tf:"search,omitempty"`
// You can enable the property to be sortable.
// +kubebuilder:validation:Optional
Sort *bool `json:"sort,omitempty" tf:"sort,omitempty"`
// A comma-separated list of source fields to map to the field. Specifying a source field copies data from one field to another, enabling you to use the same source data in different ways by configuring different options for the fields.
// +kubebuilder:validation:Optional
SourceFields *string `json:"sourceFields,omitempty" tf:"source_fields,omitempty"`
// The field type. Valid values: date, date-array, double, double-array, int, int-array, literal, literal-array, text, text-array.
// +kubebuilder:validation:Optional
Type *string `json:"type" tf:"type,omitempty"`
}
type ScalingParametersInitParameters struct {
// The instance type that you want to preconfigure for your domain. See the AWS documentation for valid values.
DesiredInstanceType *string `json:"desiredInstanceType,omitempty" tf:"desired_instance_type,omitempty"`
// The number of partitions you want to preconfigure for your domain. Only valid when you select search.2xlarge as the instance type.
DesiredPartitionCount *float64 `json:"desiredPartitionCount,omitempty" tf:"desired_partition_count,omitempty"`
// The number of replicas you want to preconfigure for each index partition.
DesiredReplicationCount *float64 `json:"desiredReplicationCount,omitempty" tf:"desired_replication_count,omitempty"`
}
type ScalingParametersObservation struct {
// The instance type that you want to preconfigure for your domain. See the AWS documentation for valid values.
DesiredInstanceType *string `json:"desiredInstanceType,omitempty" tf:"desired_instance_type,omitempty"`
// The number of partitions you want to preconfigure for your domain. Only valid when you select search.2xlarge as the instance type.
DesiredPartitionCount *float64 `json:"desiredPartitionCount,omitempty" tf:"desired_partition_count,omitempty"`
// The number of replicas you want to preconfigure for each index partition.
DesiredReplicationCount *float64 `json:"desiredReplicationCount,omitempty" tf:"desired_replication_count,omitempty"`
}
type ScalingParametersParameters struct {
// The instance type that you want to preconfigure for your domain. See the AWS documentation for valid values.
// +kubebuilder:validation:Optional
DesiredInstanceType *string `json:"desiredInstanceType,omitempty" tf:"desired_instance_type,omitempty"`
// The number of partitions you want to preconfigure for your domain. Only valid when you select search.2xlarge as the instance type.
// +kubebuilder:validation:Optional
DesiredPartitionCount *float64 `json:"desiredPartitionCount,omitempty" tf:"desired_partition_count,omitempty"`
// The number of replicas you want to preconfigure for each index partition.
// +kubebuilder:validation:Optional
DesiredReplicationCount *float64 `json:"desiredReplicationCount,omitempty" tf:"desired_replication_count,omitempty"`
}
// DomainSpec defines the desired state of Domain
type DomainSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider DomainParameters `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 DomainInitParameters `json:"initProvider,omitempty"`
}
// DomainStatus defines the observed state of Domain.
type DomainStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider DomainObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// Domain is the Schema for the Domains API. Provides an CloudSearch domain resource.
// +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,aws}
type Domain struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec DomainSpec `json:"spec"`
Status DomainStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// DomainList contains a list of Domains
type DomainList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Domain `json:"items"`
}
// Repository type metadata.
var (
Domain_Kind = "Domain"
Domain_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Domain_Kind}.String()
Domain_KindAPIVersion = Domain_Kind + "." + CRDGroupVersion.String()
Domain_GroupVersionKind = CRDGroupVersion.WithKind(Domain_Kind)
)
func init() {
SchemeBuilder.Register(&Domain{}, &DomainList{})
}